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
scout/forge:scout/4594-the-repository-head-s-actions-draw-5-s-b → main 3 commits fork 3 threads · 3 unresolved
3 files
changed +2
−3
docs/design/sections/5d-page-local-classes.md −1
| @@ -28,7 +28,6 @@ the same line (#4888). | ||
| 28 | 28 | - `.preview` |
| 29 | 29 | - `.swatch` |
| 30 | 30 | - **`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` | |
| 32 | 31 | - `.repo-desc` |
| 33 | 32 | - **`style/content.ts`, apps, runs, and the crew** — run pages, their logs and checks (a pull's look is §5's **look**). |
| 34 | 33 | - **`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( | ||
| 323 | 323 | ? badge("Private", { icon: "lock", variant: "secondary" }) |
| 324 | 324 | : badge("Public", { variant: "secondary" })} |
| 325 | 325 | ${actions.text.trim() !== "" |
| 326 | ? html`<span class="repo-actions">${actions}</span>` | |
| 326 | ? html`<span class="bar">${actions}</span>` | |
| 327 | 327 | : null}`; |
| 328 | 328 | |
| 329 | 329 | 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); } | ||
| 147 | 147 | |
| 148 | 148 | .bar > .device-code { flex: 1 1 auto; } |
| 149 | 149 | |
| 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; } | |
| 151 | 151 | |
| 152 | 152 | |
| 153 | 153 | /* A list's six words fit a phone without pushing the page sideways in a |
new above
offline
flex-wrap: nowrapkeeps 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 withmin-width: 0.