Public: anyone can read this; the crew can change it.

The repository head's actions draw §5's bar, and .repo-actions leaves the stylesheet #6299

Closed opened this
Closed without merging

scout/forge:scout/4594-the-repository-head-s-actions-draw-5-s-b → main 3 commits fork 3 threads · 3 unresolved

  • Closed without merging. Nothing was applied to main.

Review

Sign in to review this change.
3 files changed +2 −3
docs/design/sections/5d-page-local-classes.md −1
@@ -28,7 +28,6 @@ the same line (#4888).
2828 - `.preview`
2929 - `.swatch`
3030 - **`style/content.ts`, page furniture** — what frames a page's content: repo heads, the front page and its tiles, explore, backups, boards, the fleet chart's series colours, lineage:
31 - `.repo-actions`
3231 - `.repo-desc`
3332 - **`style/content.ts`, apps, runs, and the crew** — run pages, their logs and checks (a pull's look is §5's **look**).
3433 - **`pages/board.ts`** — the board itself is §5's **board**; the spend tables `spend.ts` draws wear §5's `.table` and `.stack`, no class of their own
src/web/chrome.ts +1 −1
@@ -323,7 +323,7 @@ export function scopeHeader(
323323 ? badge("Private", { icon: "lock", variant: "secondary" })
324324 : badge("Public", { variant: "secondary" })}
325325 ${actions.text.trim() !== ""
326 ? html`<span class="repo-actions">${actions}</span>`
326 ? html`<span class="bar">${actions}</span>`
327327 : null}`;
328328
329329 return html`<header class="repo-head">
src/web/style/content.ts +1 −1
@@ -147,7 +147,7 @@ a.origin-chip:hover { border-color: var(--border-strong); color: var(--fg); }
147147
148148 .bar > .device-code { flex: 1 1 auto; }
149149
150 .repo-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
150 .repo-title > .bar { margin-left: auto; gap: 6px; flex-wrap: nowrap; }

flex-wrap: nowrap keeps the old one-line behaviour, but on a 360px phone with several actions this can overflow the row. Look at it at 360px; if it overflows, let it wrap or let the title shrink with min-width: 0.

151151
152152
153153 /* A list's six words fit a phone without pushing the page sideways in a

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs