Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/skills/openbot-screen-layout/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/admin/controls/model-sections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) ? (
<ItemDescription className="text-xs">
<ItemDescription>
{modelFacts(model.name === defaultName, model.model)}
</ItemDescription>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/layout/page-parts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/teams/team-models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@ function TeamModelsDialog({
<ItemTitle>{model.label}</ItemTitle>
{/* By its name, as the Allowed models dialog lists it: the id is nobody's to read. */}
{model.withdrawn ? (
<ItemDescription className="text-xs">
<ItemDescription>
The organization no longer allows it, so nobody runs
it. Saving takes it off.
</ItemDescription>
) : model.efforts?.length ? (
<ItemDescription className="text-xs">
<ItemDescription>
Thinking:{" "}
{model.efforts.map(effortLabel).join(", ")}
</ItemDescription>
Expand Down
6 changes: 3 additions & 3 deletions app/src/components/ui/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -152,8 +152,8 @@ function ItemDescription({ className, ...props }: React.ComponentProps<"p">) {
<p
data-slot="item-description"
className={cn(
// A size below the title, so the two lines read as a label and its detail rather than two labels.
"line-clamp-2 text-left text-xs font-normal text-muted-foreground [&>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}
Expand Down
4 changes: 3 additions & 1 deletion docs/app-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading