From c10e33a1f37c54b824b6f503e88a83d74c6300be Mon Sep 17 00:00:00 2001 From: Sam Julien Date: Tue, 1 Dec 2026 16:58:42 -0800 Subject: [PATCH] The line under a row's name is text-sm, in muted-foreground ItemDescription was text-xs, a step below the title. It is now text-sm, the title's size, as in shadcn's own Item. The title's medium weight and foreground color set it apart from the detail in muted-foreground. Three screens that forced it back to text-xs no longer do: the allowed models list, a team's models and Browse apps on Apps. A title over a one-line description comes to 69px (was 65px). The look's type rule says where the line is text-sm. --- .claude/skills/openbot-screen-layout/SKILL.md | 2 +- app/src/components/admin/controls/model-sections.tsx | 2 +- app/src/components/layout/page-parts.tsx | 4 ++-- app/src/components/teams/team-models.tsx | 4 ++-- app/src/components/ui/item.tsx | 6 +++--- app/src/routes/_authed/_app/connections.index.tsx | 2 +- docs/app-guidelines.md | 4 +++- 7 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.claude/skills/openbot-screen-layout/SKILL.md b/.claude/skills/openbot-screen-layout/SKILL.md index 2ca169bed6..5e046f494d 100644 --- a/.claude/skills/openbot-screen-layout/SKILL.md +++ b/.claude/skills/openbot-screen-layout/SKILL.md @@ -72,7 +72,7 @@ components above; a screen that sets its own is drifting. | Section heading → description | 4px | `PageSection` | | Heading block → section content | 16px | `PageRows` / `PageEmpty` (`mt-4`) | | Controls stacked inside a section | 12px | the screen, with `gap-3` | -| A row in `PageRows` | 65px with a description, never under 56px | `Item` (`px-4 py-3.5 gap-3`), `PageRows` (`min-h-14`) | +| A row in `PageRows` | 69px with a description, never under 56px | `Item` (`px-4 py-3.5 gap-3`), `PageRows` (`min-h-14`) | | Divider between rows | inset 16px from both edges | `PageRows`, on every horizontal `Separator` inside it | The 32px under the title is deliberately tighter than the 48px between sections: the title belongs diff --git a/app/src/components/admin/controls/model-sections.tsx b/app/src/components/admin/controls/model-sections.tsx index a0e94bd078..823a34760a 100644 --- a/app/src/components/admin/controls/model-sections.tsx +++ b/app/src/components/admin/controls/model-sections.tsx @@ -800,7 +800,7 @@ export function AllowedModelsDialog({ * listing doesn't have is titled by its full name, which is all it has. */} {modelFacts(model.name === defaultName, model.model) ? ( - + {modelFacts(model.name === defaultName, model.model)} ) : null} diff --git a/app/src/components/layout/page-parts.tsx b/app/src/components/layout/page-parts.tsx index 1e7969c99b..4289e1b959 100644 --- a/app/src/components/layout/page-parts.tsx +++ b/app/src/components/layout/page-parts.tsx @@ -173,8 +173,8 @@ export function PageRows({ * inside a card of divided rows painted a hover as a floating pill: a middle row has no corners, * and the first and last cannot be concentric with the card while sitting a border inside it. * - * Every row is at least 56px, whatever it holds. A title over a description is 65px; a lone - * line would be 48px and look stunted beside it, so it is held up to the floor. A description + * Every row is at least 56px, whatever it holds. A title over a description is 69px; a lone + * line would be 46px and look stunted beside it, so it is held up to the floor. A description * that wraps to a second line still grows the row rather than being clipped. */
{model.label} {/* By its name, as the Allowed models dialog lists it: the id is nobody's to read. */} {model.withdrawn ? ( - + The organization no longer allows it, so nobody runs it. Saving takes it off. ) : model.efforts?.length ? ( - + Thinking:{" "} {model.efforts.map(effortLabel).join(", ")} diff --git a/app/src/components/ui/item.tsx b/app/src/components/ui/item.tsx index 80f4649266..af0bc1a823 100644 --- a/app/src/components/ui/item.tsx +++ b/app/src/components/ui/item.tsx @@ -44,7 +44,7 @@ const itemVariants = cva( }, /* * Linear's settings row: 16px in from every edge and 12px between media, text and actions. - * A title over a one-line description comes to 65px, a single line to 48px. + * A title over a one-line description comes to 69px, a single line to 46px. */ size: { default: "gap-3 px-4 py-3.5", @@ -152,8 +152,8 @@ function ItemDescription({ className, ...props }: React.ComponentProps<"p">) {

a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", + // The title's size, as in shadcn. The weight and the muted color tell the detail from the name. + "line-clamp-2 text-left text-sm font-normal text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className, )} {...props} diff --git a/app/src/routes/_authed/_app/connections.index.tsx b/app/src/routes/_authed/_app/connections.index.tsx index aa0c4327d5..67d92c4e3c 100644 --- a/app/src/routes/_authed/_app/connections.index.tsx +++ b/app/src/routes/_authed/_app/connections.index.tsx @@ -1055,7 +1055,7 @@ function BrowseTile({ {browse.title} - + {browse.description} diff --git a/docs/app-guidelines.md b/docs/app-guidelines.md index 038e7e9e7a..16c3138748 100644 --- a/docs/app-guidelines.md +++ b/docs/app-guidelines.md @@ -218,7 +218,9 @@ things are drawn, not how big they are. 1. **Colors.** Only the scheme's tokens, as above. 2. **Type.** Figtree and the type scale in `theme.css`. Controls, rows and navigation are - `text-sm`; labels, times and counts are `text-xs`. No text size written by hand (`text-[13px]`). + `text-sm`; labels, times and counts are `text-xs`. The line under a row's name in a card + (`ItemDescription`) is `text-sm` too, in `muted-foreground`: the name's weight and color set it + apart. No text size written by hand (`text-[13px]`). 3. **Corners.** All from `--radius`, 10px, the design's radius base. Controls are `rounded-md` (8px), cards and the page's panel `rounded-lg` (10px), menus, dialogs and the message box `rounded-xl` (14px), round things `rounded-full`. `rounded-none` squares a part off. No other