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

.front-admin and .front-pick leave the stylesheet #5086

Parked opened this
Closed without merging

mason/forge:mason/5065-front-admin-and-front-pick-leave-the-sty → main 2 commits fork

  • Closed without merging. Nothing was applied to main.

Review

Sign in to review this change.
3 files changed +5 −9
docs/DESIGN.md −2
@@ -499,7 +499,6 @@ the same line (#4888).
499499 - `.fg-s7`
500500 - `.filters`
501501 - `.flag-form`
502 - `.front-admin`
503502 - `.front-crew`
504503 - `.front-featured`
505504 - `.front-featured-body`
@@ -507,7 +506,6 @@ the same line (#4888).
507506 - `.front-issues`
508507 - `.front-live`
509508 - `.front-more`
510 - `.front-pick`
511509 - `.headroom`
512510 - `.issue-head`
513511 - `.issue-meta`
src/web/studio/home.ts +4 −4
@@ -397,7 +397,7 @@ const WEIGHT_LABEL: Record<(typeof WEIGHT_NAMES)[number], string> = {
397397 function frontControls(ctx: Ctx, front: FrontPage): Html {
398398 const picks = frontPicksJson(ctx.app);
399399 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">
401401 <input type="hidden" name="action" value="${action}" />
402402 <input type="hidden" name="repo" value="${repo}" />
403403 ${btn(label, { size: "sm" })}
@@ -413,9 +413,9 @@ function frontControls(ctx: Ctx, front: FrontPage): Html {
413413 ...front.shelf.filter((e) => !e.pinned),
414414 ];
415415 const row = (label: string, controls: Html): Html =>
416 html`<li class="row front-pick">
416 html`<li class="row">
417417 <span class="mono truncate">${label}</span>
418 <span class="spacer"></span>${controls}
418 <span class="spacer"></span><span class="row-trail">${controls}</span>
419419 </li>`;
420420 return card(
421421 html`<ul class="list">
@@ -558,7 +558,7 @@ export function studioDoor(ctx: Ctx): Response {
558558 })}
559559 </div>`
560560 : 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>`)}`;
562562 const res = page({ ctx, title: "forge", body });
563563 notePhaseRest(ctx.request, "render", rendering, []);
564564 return res;
src/web/style/content.ts +1 −3
@@ -310,9 +310,7 @@ form.inline { display: inline; margin-left: auto; }
310310 .front-issues li { min-width: 0; }
311311 .front-issues a { color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
312312 .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; }
316314 .card[data-front-settings] .bar { padding: 12px 16px; gap: 8px 12px; }
317315 .card[data-front-settings] .bar:has(> [name=repo]) { flex-wrap: nowrap; }
318316 .card[data-front-settings] .bar > [name=repo] { flex: 1; min-width: 0; }

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs