You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fda1127
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .claude/skills/openbot-screen-layout/SKILL.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,8 +54,10 @@ PageShell the page: header (title, one-sentence description, action, back
54
54
`PageShell` takes a `width`: `prose` (`max-w-3xl`, 768px) is the default, and every
55
55
configuration screen uses it so no screen is wider than another. Sentences inside it are held to
56
56
`max-w-prose`, so the column has room for a label beside its control without stretching the text.
57
-
`wide` (`max-w-5xl`) exists for one screen — `admin/audit.tsx`, because an audit log is a table to be
58
-
scanned and prose width would wrap every row. It is not a licence for anything else to be wide.
57
+
`wide` (`max-w-4xl`, 896px) is for a grid of cards picked out by how they look: the Artifacts
58
+
gallery, three cards a row on a desktop window. `full` (no column) exists for one screen, the audit
59
+
log (`manage/audit-page.tsx`), because it is a table to be scanned and prose width would wrap every
60
+
row. Neither is a licence for rows or forms to be wide.
59
61
60
62
## The Rhythm
61
63
@@ -242,7 +244,8 @@ is actually on screen. The root was once 15px, and every constant taken from the
242
244
- A width, ratio or scale needs a number in pixels → the Units section. Measure, do not assume.
243
245
- Choosing a margin or gap between blocks → the Rhythm table. If the frame already gives it, set none.
244
246
- The screen genuinely does not fit this shape → say so in the response and comment the reason in the
245
-
code. There are two accepted precedents: a table (`admin/audit.tsx`, `width="wide"`), and the
247
+
code. There are three accepted precedents: a table (the audit log, `width="full"`), the
248
+
Artifacts gallery (`width="wide"`, a grid of cards), and the
246
249
Connections tiles (`connections.index.tsx`), a grid of separate `variant="outline"` cards, 56px
247
250
tall and 12px apart, because apps are picked out by their mark rather than read down as a list.
248
251
- The question is which states the screen renders while loading or failing → not this skill;
@@ -256,7 +259,7 @@ is actually on screen. The root was once 15px, and every constant taken from the
256
259
| Rows separated by `gap-*` instead of `<Separator />`| A stack of cards rather than one list of rows |`<Separator />` between rows, none after the last |
257
260
|`ItemMedia variant="icon"` on rows whose icons are one per kind of setting | A tile that repeats the title, the look this layout dropped | No media; keep tiles for app marks and file kinds |
258
261
| A page or section description of two or more sentences | A paragraph between the title and the rows | One sentence; the rest in `learnMore`|
259
-
|`width="wide"`on anything that is not a table| Prose width is the default for a reason; wide was for the audit log| Leave `width` alone |
262
+
|`width="wide"`or `"full"` on rows or a form| Prose width is the default for a reason; the others are for a grid of cards and a table| Leave `width` alone |
260
263
| A `max-w-*`, `p-*` or text size invented for one screen | A fifth container width, which is what this layout exists to stop | Reach for the existing component |
261
264
| Children on an element passed to `Item`'s `render`| They replace the row's own children; the row draws empty | Pass a childless element |
262
265
|`bg-card` on a row inside a dialog |`--card` equals `--popover`; the row is invisible |`variant="muted"`|
0 commit comments