Public: anyone can read this; the crew can change it.
.front-admin and .front-pick leave the stylesheet #5188
mason/forge:mason/5065-front-admin-and-front-pick-leave-the-sty → main 3 commits fork
3 files
changed +5
−9
docs/DESIGN.md −2
| @@ -499,7 +499,6 @@ the same line (#4888). | ||
| 499 | 499 | - `.fg-s7` |
| 500 | 500 | - `.filters` |
| 501 | 501 | - `.flag-form` |
| 502 | - `.front-admin` | |
| 503 | 502 | - `.front-crew` |
| 504 | 503 | - `.front-featured` |
| 505 | 504 | - `.front-featured-body` |
| @@ -507,7 +506,6 @@ the same line (#4888). | ||
| 507 | 506 | - `.front-issues` |
| 508 | 507 | - `.front-live` |
| 509 | 508 | - `.front-more` |
| 510 | - `.front-pick` | |
| 511 | 509 | - `.headroom` |
| 512 | 510 | - `.issue-head` |
| 513 | 511 | - `.issue-meta` |
src/web/studio/home.ts +4 −4
| @@ -397,7 +397,7 @@ const WEIGHT_LABEL: Record<(typeof WEIGHT_NAMES)[number], string> = { | ||
| 397 | 397 | function frontControls(ctx: Ctx, front: FrontPage): Html { |
| 398 | 398 | const picks = frontPicksJson(ctx.app); |
| 399 | 399 | const act = (action: string, repo: string, label: string): Html => |
| 400 | html`<form method="post" action="/front" class="inline"> | |
| 400 | html`<form method="post" action="/front"> | |
| 401 | 401 | <input type="hidden" name="action" value="${action}" /> |
| 402 | 402 | <input type="hidden" name="repo" value="${repo}" /> |
| 403 | 403 | ${btn(label, { size: "sm" })} |
| @@ -413,9 +413,9 @@ function frontControls(ctx: Ctx, front: FrontPage): Html { | ||
| 413 | 413 | ...front.shelf.filter((e) => !e.pinned), |
| 414 | 414 | ]; |
| 415 | 415 | const row = (label: string, controls: Html): Html => |
| 416 | html`<li class="row front-pick"> | |
| 416 | html`<li class="row"> | |
| 417 | 417 | <span class="mono truncate">${label}</span> |
| 418 | <span class="spacer"></span>${controls} | |
| 418 | <span class="spacer"></span><span class="row-trail">${controls}</span> | |
| 419 | 419 | </li>`; |
| 420 | 420 | return card( |
| 421 | 421 | html`<ul class="list"> |
| @@ -558,7 +558,7 @@ export function studioDoor(ctx: Ctx): Response { | ||
| 558 | 558 | })} |
| 559 | 559 | </div>` |
| 560 | 560 | : null} |
| 561 | ${when(admin, () => html`<div class="mt front-admin">${frontControls(ctx, front)}</div>`)}`; | |
| 561 | ${when(admin, () => html`<div class="mt">${frontControls(ctx, front)}</div>`)}`; | |
| 562 | 562 | const res = page({ ctx, title: "forge", body }); |
| 563 | 563 | notePhaseRest(ctx.request, "render", rendering, []); |
| 564 | 564 | return res; |
src/web/style/content.ts +1 −3
| @@ -310,9 +310,7 @@ form.inline { display: inline; margin-left: auto; } | ||
| 310 | 310 | .front-issues li { min-width: 0; } |
| 311 | 311 | .front-issues a { color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 312 | 312 | .front-more { text-align: center; } |
| 313 | .front-admin { max-width: 1040px; margin-inline: auto; } | |
| 314 | .front-pick { gap: 8px; } | |
| 315 | .front-pick form.inline { margin-left: 0; } | |
| 313 | .card[data-front-settings] { max-width: 1040px; margin-inline: auto; } | |
| 316 | 314 | .card[data-front-settings] .bar { padding: 12px 16px; gap: 8px 12px; } |
| 317 | 315 | .card[data-front-settings] .bar:has(> [name=repo]) { flex-wrap: nowrap; } |
| 318 | 316 | .card[data-front-settings] .bar > [name=repo] { flex: 1; min-width: 0; } |
new above
offline