diff --git a/.claude/skills/openbot-screen-layout/SKILL.md b/.claude/skills/openbot-screen-layout/SKILL.md index 7e455c4f13..1984ec76d9 100644 --- a/.claude/skills/openbot-screen-layout/SKILL.md +++ b/.claude/skills/openbot-screen-layout/SKILL.md @@ -74,7 +74,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` | 67px with a description, never under 56px | `Item` (`px-4 py-3.5 gap-3`), `PageRows` (`min-h-14`) | +| A row in `PageRows` | 71px 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 ddbf7b838d..dd09893d5f 100644 --- a/app/src/components/layout/page-parts.tsx +++ b/app/src/components/layout/page-parts.tsx @@ -181,7 +181,7 @@ 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 67px; a lone + * Every row is at least 56px, whatever it holds. A title over a description is 71px; a lone * line would be 47px 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. */ diff --git a/app/src/components/teams/team-models.tsx b/app/src/components/teams/team-models.tsx index 5c0f14535e..f2dfda8dca 100644 --- a/app/src/components/teams/team-models.tsx +++ b/app/src/components/teams/team-models.tsx @@ -293,12 +293,12 @@ function TeamModelsDialog({ {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 a326e4e2ff..51b70ac9f8 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 67px, a single line to 47px. + * A title over a one-line description comes to 71px, a single line to 47px. */ 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/docs/app-guidelines.md b/docs/app-guidelines.md index ebfc19f886..f81fe2e76e 100644 --- a/docs/app-guidelines.md +++ b/docs/app-guidelines.md @@ -220,7 +220,9 @@ changes, for every screen at once, in a change agreed first. 1. **Colors.** Only the scheme's tokens, as above. 2. **Type.** Figtree on Tailwind's own type scale, in whole pixels: `text-xs` is 12px, `text-sm` 14px, `text-base` 16px and a page title's `text-2xl` 24px. 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