teqo/src/lib/homeSearchUi.ts
Francisco Ignácio Fontoura Solla 03bcf2e719 B71: polish home search results (bleed hover, list-none, sentence-case headings).
Centralize layout tokens in homeSearchUi.ts so hit rows fill the scroll padding on hover/focus and group lists drop public-site bullet leakage.
2026-07-30 01:27:05 -03:00

8 lines
456 B
TypeScript

/** Mirrors `p-4` / `md:p-6` on `campanha/(app)/layout.tsx` for full-bleed hit rows. */
export const HOME_SEARCH_HIT_BLEED_CLASS = '-mx-4 px-4 md:-mx-6 md:px-6'
export const HOME_SEARCH_HIT_ROW_WRAPPER_CLASS = `${HOME_SEARCH_HIT_BLEED_CLASS} hover:bg-muted/60 focus-within:bg-muted/60`
export const HOME_SEARCH_GROUP_HEADING_CLASS = 'text-xs font-normal text-muted-foreground'
export const HOME_SEARCH_GROUP_LIST_CLASS = 'm-0 list-none p-0 [&>li]:mt-0'