fix: polish kumo dialog and select styling

This commit is contained in:
2026-07-02 09:45:21 -07:00
parent 22e61f5efe
commit 04f2dfc229
4 changed files with 49 additions and 26 deletions

View File

@@ -72,8 +72,8 @@ export function OrganizationManagementClient(): React.ReactElement {
title="新增机构"
>
<form className="grid gap-4" onSubmit={handleSubmit}>
<Input name="name" placeholder="机构名称" required />
<Input name="slug" placeholder="机构标识,可留空" />
<Input label="机构名称" name="name" placeholder="机构名称" required />
<Input label="机构标识" name="slug" placeholder="可留空" />
{message ? (
<p className="rounded-md bg-secondary px-3 py-2 text-sm text-secondary-foreground" role="status">
{message}
@@ -195,26 +195,17 @@ export function OrganizationRowActions({
title="编辑机构"
>
<form className="grid gap-4" onSubmit={handleSubmit}>
<label className="grid gap-2 text-sm">
<span className="font-medium"></span>
<Input defaultValue={organization.name} name="name" required />
</label>
<label className="grid gap-2 text-sm">
<span className="font-medium"></span>
<Input defaultValue={organization.slug} name="slug" required />
</label>
<label className="grid gap-2 text-sm">
<span className="font-medium"></span>
<Select
aria-label="机构状态"
defaultValue={organization.status}
name="status"
options={[
{ value: "active", label: "启用" },
{ value: "disabled", label: "停用" },
]}
/>
</label>
<Input defaultValue={organization.name} label="机构名称" name="name" required />
<Input defaultValue={organization.slug} label="机构标识" name="slug" required />
<Select
defaultValue={organization.status}
label="状态"
name="status"
options={[
{ value: "active", label: "启用" },
{ value: "disabled", label: "停用" },
]}
/>
{message ? (
<p className="rounded-md bg-secondary px-3 py-2 text-sm text-secondary-foreground" role="status">
{message}