forge
Explore
Log in

Don't you dare go Hollow

🎨 tighten toolbar controls to compact density

Browse files at this commit

ae4184f84892c008b958b7bfb5046f57ef1105ffBurak BoduroğluParent: 9ce98f9
  • style
    • 🎨 tighten toolbar controls to compact density
Show full message
style: 🎨 tighten toolbar controls to compact density
- search, filter selects, filter buttons, columns menu: h-9 → h-8, text-[13px]
- selects/filters use rounded-lg (was rounded-md) to match the standard
- update ui-conventions skill + tokens doc (compact h-8 standard); sync .codex
.claude/skills/ui-conventions/SKILL.mdmodified+1 -1
@@ -48,7 +48,7 @@ Active project reference docs (read the relevant one before changing that area):
4848 - Application tables must use `src/components/ui/data-table.tsx` `DataTable`.
4949 - 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.
5050 - 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`.
5252 - Pages/domain components must not import or render `Table` primitives directly; only the `DataTable` wrapper and table primitive files may.
5353
5454 ## 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):
4848 - Application tables must use `src/components/ui/data-table.tsx` `DataTable`.
4949 - 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.
5050 - 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`.
5252 - Pages/domain components must not import or render `Table` primitives directly; only the `DataTable` wrapper and table primitive files may.
5353
5454 ## Date/time & attendance
docs/ui/ui-redesign-tokens.mdmodified+1 -1
@@ -69,7 +69,7 @@ display-font, translucent surface, or custom shadow rules.
6969 right, and inherits the exact opaque row surface
7070 - Data columns fill the available table width at a consistent proportional width.
7171 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)
7373 - Pagination includes range, optional page-size selector, previous/next, and page
7474 count
7575 - `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) {
1919 value={props.value}
2020 onInput={(event) => props.onChange(event.currentTarget.value)}
2121 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")}
2323 />
2424 <Show when={props.value}>
2525 <button
src/components/ui/data-table-view-menu.tsxmodified+1 -1
@@ -26,7 +26,7 @@ export function DataTableViewMenu(props: DataTableViewMenuProps) {
2626
2727 return (
2828 <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">
3030 {t("common.columns")}
3131 <IconChevronDown class="h-3.5 w-3.5 opacity-60" />
3232 </DropdownMenuTrigger>
src/components/ui/data-table.tsxmodified+1 -1
@@ -273,7 +273,7 @@ export function DataTable<TData, TValue = unknown>(props: DataTableProps<TData,
273273 />
274274 </Show>
275275 <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>
277277 </Show>
278278 </div>
279279 <Show when={showColumnMenu()}>
src/components/ui/select.tsxmodified+1 -1
@@ -34,7 +34,7 @@ export function DropdownSelect<T extends string | number = string>(props: Dropdo
3434 <DropdownMenuTrigger
3535 disabled={props.disabled}
3636 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",
3838 props.triggerClass,
3939 props.class,
4040 )}