fix(ui): refine trip forms and planner empty states

This commit is contained in:
Maurice
2026-12-02 22:03:08 +01:00
parent 59e5c5a3c9
commit 01ad13623c
19 changed files with 286 additions and 183 deletions
+3 -1
View File
@@ -199,7 +199,8 @@ export interface HeaderTitleInput {
/** The field's accessible name, e.g. the old "Title *" label. */
label: string
placeholder?: string
autoFocus?: boolean
autoFocus?: boolean;
readOnly?: boolean;
required?: boolean
maxLength?: number
onKeyDown?: (e: ReactKeyboardEvent<HTMLInputElement>) => void
@@ -253,6 +254,7 @@ export function DialogHeader(p: DialogHeaderProps) {
aria-label={f.label}
placeholder={f.placeholder}
ref={f.autoFocus ? focusRevealedEditor : undefined}
readOnly={f.readOnly}
required={f.required}
maxLength={f.maxLength}
className="-mx-2 block w-[calc(100%+16px)] rounded-[10px] border-0 bg-transparent px-2 py-0.5 font-bold tracking-[-0.01em] text-content outline-none placeholder:font-semibold placeholder:text-content-faint hover:bg-surface-card focus:bg-surface-card focus:shadow-sm dark:bg-transparent dark:hover:bg-surface-card dark:focus:bg-surface-card"