🎨 tighten toolbar controls to compact density
Browse files at this commitae4184f84892c008b958b7bfb5046f57ef1105ffParent: 9ce98f9- style
- 🎨 tighten toolbar controls to compact density
7 changed files +7 -7
- .claude/skills/ui-conventions/SKILL.md +1 -1
- .codex/skills/ui-conventions/SKILL.md +1 -1
- docs/ui/ui-redesign-tokens.md +1 -1
- src/components/ui/data-table-search.tsx +1 -1
- src/components/ui/data-table-view-menu.tsx +1 -1
- src/components/ui/data-table.tsx +1 -1
- src/components/ui/select.tsx +1 -1
.claude/skills/ui-conventions/SKILL.mdmodified+1 -1
| @@ -48,7 +48,7 @@ Active project reference docs (read the relevant one before changing that area): | |||
| 48 | - Application tables must use `src/components/ui/data-table.tsx` `DataTable`. | 48 | - Application tables must use `src/components/ui/data-table.tsx` `DataTable`. |
| 49 | - Actions columns stay fixed at `w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap` to prevent localized headers like `"İŞLEMLER"` from changing their size. | 49 | - Actions columns stay fixed at `w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap` to prevent localized headers like `"İŞLEMLER"` from changing their size. |
| 50 | - Table-page headers fold into the `DataTable` title/description/actions area; do not render a separate `PageHeader` above table-primary pages. | 50 | - Table-page headers fold into the `DataTable` title/description/actions area; do not render a separate `PageHeader` above table-primary pages. |
| 51 | -- Search inputs, dropdown filters, filter buttons, and toolbar actions share the same height/radius (`h-9 rounded-lg` unless the shared component changes the standard globally). | 51 | +- Search inputs, dropdown filters, filter buttons, and column controls share the same compact height/radius (`h-8 rounded-lg`, `text-[13px]`) unless the shared component changes the standard globally. Page-header primary actions may stay `h-9`. |
| 52 | - Pages/domain components must not import or render `Table` primitives directly; only the `DataTable` wrapper and table primitive files may. | 52 | - Pages/domain components must not import or render `Table` primitives directly; only the `DataTable` wrapper and table primitive files may. |
| 53 | 53 | ||
| 54 | ## Date/time & attendance | 54 | ## Date/time & attendance |
.codex/skills/ui-conventions/SKILL.mdmodified+1 -1
| @@ -48,7 +48,7 @@ Active project reference docs (read the relevant one before changing that area): | |||
| 48 | - Application tables must use `src/components/ui/data-table.tsx` `DataTable`. | 48 | - Application tables must use `src/components/ui/data-table.tsx` `DataTable`. |
| 49 | - Actions columns stay fixed at `w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap` to prevent localized headers like `"İŞLEMLER"` from changing their size. | 49 | - Actions columns stay fixed at `w-[110px] min-w-[110px] max-w-[110px] h-[45px] text-center whitespace-nowrap` to prevent localized headers like `"İŞLEMLER"` from changing their size. |
| 50 | - Table-page headers fold into the `DataTable` title/description/actions area; do not render a separate `PageHeader` above table-primary pages. | 50 | - Table-page headers fold into the `DataTable` title/description/actions area; do not render a separate `PageHeader` above table-primary pages. |
| 51 | -- Search inputs, dropdown filters, filter buttons, and toolbar actions share the same height/radius (`h-9 rounded-lg` unless the shared component changes the standard globally). | 51 | +- Search inputs, dropdown filters, filter buttons, and column controls share the same compact height/radius (`h-8 rounded-lg`, `text-[13px]`) unless the shared component changes the standard globally. Page-header primary actions may stay `h-9`. |
| 52 | - Pages/domain components must not import or render `Table` primitives directly; only the `DataTable` wrapper and table primitive files may. | 52 | - Pages/domain components must not import or render `Table` primitives directly; only the `DataTable` wrapper and table primitive files may. |
| 53 | 53 | ||
| 54 | ## Date/time & attendance | 54 | ## Date/time & attendance |
docs/ui/ui-redesign-tokens.mdmodified+1 -1
| @@ -69,7 +69,7 @@ display-font, translucent surface, or custom shadow rules. | |||
| 69 | right, and inherits the exact opaque row surface | 69 | right, and inherits the exact opaque row surface |
| 70 | - Data columns fill the available table width at a consistent proportional width. | 70 | - Data columns fill the available table width at a consistent proportional width. |
| 71 | Column resizing is not offered (no resize handles, no width persistence) | 71 | Column resizing is not offered (no resize handles, no width persistence) |
| 72 | -- Search and column controls: `h-9 rounded-lg` (not pill) | 72 | +- Search / filter / column controls: compact `h-8 rounded-lg` + `text-[13px]` (not pill) |
| 73 | - Pagination includes range, optional page-size selector, previous/next, and page | 73 | - Pagination includes range, optional page-size selector, previous/next, and page |
| 74 | count | 74 | count |
| 75 | - `storageKey` remains optional. When provided, only column visibility persists | 75 | - `storageKey` remains optional. When provided, only column visibility persists |
src/components/ui/data-table-search.tsxmodified+1 -1
| @@ -19,7 +19,7 @@ export function DataTableSearch(props: DataTableSearchProps) { | |||
| 19 | value={props.value} | 19 | value={props.value} |
| 20 | onInput={(event) => props.onChange(event.currentTarget.value)} | 20 | onInput={(event) => props.onChange(event.currentTarget.value)} |
| 21 | placeholder={props.placeholder ?? "Ara"} | 21 | placeholder={props.placeholder ?? "Ara"} |
| 22 | - class={cn("h-9 rounded-lg bg-muted/40", props.value ? "pl-9 pr-8" : "pl-9")} | 22 | + class={cn("h-8 rounded-lg bg-muted/40 text-[13px] md:text-[13px]", props.value ? "pl-9 pr-8" : "pl-9")} |
| 23 | /> | 23 | /> |
| 24 | <Show when={props.value}> | 24 | <Show when={props.value}> |
| 25 | <button | 25 | <button |
src/components/ui/data-table-view-menu.tsxmodified+1 -1
| @@ -26,7 +26,7 @@ export function DataTableViewMenu(props: DataTableViewMenuProps) { | |||
| 26 | 26 | ||
| 27 | return ( | 27 | return ( |
| 28 | <DropdownMenu placement="bottom-end" gutter={6}> | 28 | <DropdownMenu placement="bottom-end" gutter={6}> |
| 29 | - <DropdownMenuTrigger class="ml-auto inline-flex h-9 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-border/70 bg-muted/40 px-3.5 text-sm font-medium transition-all hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"> | 29 | + <DropdownMenuTrigger class="ml-auto inline-flex h-8 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-border/70 bg-muted/40 px-3 text-[13px] font-medium transition-all hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"> |
| 30 | {t("common.columns")} | 30 | {t("common.columns")} |
| 31 | <IconChevronDown class="h-3.5 w-3.5 opacity-60" /> | 31 | <IconChevronDown class="h-3.5 w-3.5 opacity-60" /> |
| 32 | </DropdownMenuTrigger> | 32 | </DropdownMenuTrigger> |
src/components/ui/data-table.tsxmodified+1 -1
| @@ -273,7 +273,7 @@ export function DataTable<TData, TValue = unknown>(props: DataTableProps<TData, | |||
| 273 | /> | 273 | /> |
| 274 | </Show> | 274 | </Show> |
| 275 | <Show when={props.filters}> | 275 | <Show when={props.filters}> |
| 276 | - <div class="flex flex-wrap items-center gap-2 [&_button]:h-9 [&_button]:rounded-md [&_select]:h-9 [&_select]:rounded-md">{props.filters}</div> | 276 | + <div class="flex flex-wrap items-center gap-2 [&_button]:h-8 [&_button]:rounded-lg [&_button]:text-[13px] [&_select]:h-8 [&_select]:rounded-lg [&_select]:text-[13px]">{props.filters}</div> |
| 277 | </Show> | 277 | </Show> |
| 278 | </div> | 278 | </div> |
| 279 | <Show when={showColumnMenu()}> | 279 | <Show when={showColumnMenu()}> |
src/components/ui/select.tsxmodified+1 -1
| @@ -34,7 +34,7 @@ export function DropdownSelect<T extends string | number = string>(props: Dropdo | |||
| 34 | <DropdownMenuTrigger | 34 | <DropdownMenuTrigger |
| 35 | disabled={props.disabled} | 35 | disabled={props.disabled} |
| 36 | class={cn( | 36 | class={cn( |
| 37 | - "inline-flex h-9 items-center justify-between gap-2.5 rounded-lg border border-border/70 bg-muted/40 px-3 text-sm font-medium text-foreground transition-all hover:border-border hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", | 37 | + "inline-flex h-8 items-center justify-between gap-2.5 rounded-lg border border-border/70 bg-muted/40 px-2.5 text-[13px] font-medium text-foreground transition-all hover:border-border hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", |
| 38 | props.triggerClass, | 38 | props.triggerClass, |
| 39 | props.class, | 39 | props.class, |
| 40 | )} | 40 | )} |