From 5bfea4e2cd06a277318874914da680b8daa7b1d4 Mon Sep 17 00:00:00 2001 From: eti Date: Mon, 3 Aug 2026 17:17:51 +0300 Subject: [PATCH] web/components: clean up Combobox Signed-off-by: eti --- web/src/lib/components/ui/Combobox.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/lib/components/ui/Combobox.svelte b/web/src/lib/components/ui/Combobox.svelte index 608df5882..6a2159742 100644 --- a/web/src/lib/components/ui/Combobox.svelte +++ b/web/src/lib/components/ui/Combobox.svelte @@ -6,19 +6,19 @@ export const combobox = tv({ slots: { root: "relative inline-block w-full", - trigger: "flex min-h-9 cursor-pointer items-center gap-2 px-2 py-1", - value: "min-w-0 flex-1 truncate text-left", + trigger: "flex min-h-9 cursor-pointer items-center gap-2 px-2.5 py-1", + value: "min-w-0 flex-1 truncate typography-paragraph-regular text-left", panel: - "combobox-panel fixed z-50 m-0 flex max-h-[min(24rem,calc(100dvh-1rem))] w-72 max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-sm border border-border-default bg-background-default p-0 typography-paragraph-small text-foreground-default shadow-regular", + "combobox-panel fixed z-50 m-0 flex max-h-[min(24rem,calc(100dvh-1rem))] w-72 max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-sm border border-border-default bg-background-default p-0 text-foreground-default shadow-regular dark:shadow-none", search: "shrink-0 border-b border-border-default p-2", list: "min-h-0 flex-1 overflow-y-auto p-1", groupHeading: - "px-2 pt-2 pb-1 typography-paragraph-small font-bold text-foreground-muted first:pt-1", + "px-2 pt-2 pb-1 font-bold text-foreground-muted first:pt-1", option: - "flex w-full cursor-pointer items-center gap-2 rounded-sm bg-transparent px-2 py-1.5 text-left aria-disabled:cursor-not-allowed aria-disabled:text-foreground-disabled data-active:bg-background-subtle dark:data-active:bg-[rgb(55_65_81/0.5)]", + "flex w-full cursor-pointer items-center gap-2 rounded-sm bg-transparent px-2 py-1.5 text-left aria-disabled:cursor-not-allowed aria-disabled:text-foreground-disabled data-active:bg-background-subtle dark:data-active:bg-background-subtle", check: "size-4 shrink-0 text-foreground-default", optionLabel: "min-w-0 flex-1 truncate", - hint: "shrink-0 typography-paragraph-small text-foreground-muted", + hint: "shrink-0 text-foreground-muted", empty: "px-2 py-6 text-center text-foreground-muted", footer: "shrink-0 border-t border-border-default" }, -- 2.54.0