diff --git a/openflare_server/web/features/proxy-routes/components/domain-list-input.tsx b/openflare_server/web/features/proxy-routes/components/domain-list-input.tsx index a4788e0b..9f7905a6 100644 --- a/openflare_server/web/features/proxy-routes/components/domain-list-input.tsx +++ b/openflare_server/web/features/proxy-routes/components/domain-list-input.tsx @@ -14,7 +14,11 @@ export type DomainListRow = { certificateId: string; }; -const actionButtonClassName = 'h-12 w-[72px] shrink-0 rounded-2xl px-0'; +const actionButtonBaseClassName = 'h-11 w-11 shrink-0 rounded-2xl px-0'; +const removeButtonClassName = + 'border-[var(--border-default)] bg-[var(--surface-elevated)] text-[var(--foreground-secondary)] hover:border-[var(--status-danger-border)] hover:bg-[var(--status-danger-soft)] hover:text-[var(--status-danger-foreground)] disabled:border-[var(--border-default)] disabled:bg-[var(--surface-muted)] disabled:text-[var(--foreground-muted)]'; +const addButtonClassName = + 'border-dashed border-[var(--border-default)] bg-[var(--surface-muted)] text-[var(--foreground-secondary)] hover:border-[var(--brand-primary)] hover:bg-[var(--brand-primary-soft)] hover:text-[var(--brand-primary)]'; function ensureRows(rows: DomainListRow[]) { return rows.length > 0 ? rows : [{ domain: '', certificateId: '' }]; @@ -146,11 +150,11 @@ export function DomainListInput({ return (
-
+
{ if (safeRows.length === 1) { @@ -242,7 +246,7 @@ export function DomainListInput({ { updateRows([...safeRows, { domain: '', certificateId: '' }]); }} diff --git a/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx b/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx index 21f3fb70..1bb13f8e 100644 --- a/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx +++ b/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx @@ -352,6 +352,7 @@ function DomainSettingsSection({ label="域名列表" hint="每行配置一个域名。可为不同域名选择不同证书,相同证书也可以重复选择。" error={form.formState.errors.domain_rows?.message as string | undefined} + container="div" > + {label} {tooltip ? : null} @@ -54,7 +58,7 @@ export function ResourceField({ {hint} ) : null} - + ); }