forge
Explore
Log in

Don't you dare go Hollow

The label yields to the tab, the board keeps its viewport

Browse files at this commit

9f04477da433f4422f221132e59ca238ae9a0e7eAhmet Kaan GümüşParent: 20280ed
  • feat
    • the label yields to the tab, the board keeps its viewport
Show full message
✨ feat(web): the label yields to the tab, the board keeps its viewport
crates/izlek-web/src/logs.rsmodified+0 -2
@@ -391,8 +391,6 @@ async fn logs_screen(cx: &Cx, snapshot: LogsSnapshot) -> Result {
391391 <span class="wordmark-text">"izlek"</span>
392392 <span class="wordmark-dot"></span>
393393 </a>
394- <div class="topbar-divider"></div>
395- <span class="board-name">(t(lang, Key::Logs))</span>
396394 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Logs, lang).await?)
397395 <div class="spacer"></div>
398396 (crate::layout::user_menu(cx, &me.display_name, &me.email, me.role, lang).await?)
crates/izlek-web/src/rules.rsmodified+0 -2
@@ -715,8 +715,6 @@ async fn rules_page(cx: &Cx) -> Result {
715715 <span class="wordmark-text">"izlek"</span>
716716 <span class="wordmark-dot"></span>
717717 </a>
718- <div class="topbar-divider"></div>
719- <span class="board-name">(t(lang, Key::MailRules))</span>
720718 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Rules, lang).await?)
721719 <div class="spacer"></div>
722720 (crate::layout::user_menu(cx, &user.display_name, &user.email, user.role, lang).await?)
crates/izlek-web/src/settings.rsmodified+0 -2
@@ -786,8 +786,6 @@ async fn settings_page(cx: &Cx) -> Result {
786786 <span class="wordmark-text">"izlek"</span>
787787 <span class="wordmark-dot"></span>
788788 </a>
789- <div class="topbar-divider"></div>
790- <span class="board-name">(t(lang, Key::NavSettings))</span>
791789 (crate::layout::topbar_nav(cx, crate::layout::NavPage::Settings, lang).await?)
792790 <div class="spacer"></div>
793791 (crate::layout::user_menu(cx, &user.display_name, &user.email, user.role, lang).await?)
style/_instrument.scssmodified+3 -16
@@ -11,8 +11,7 @@
1111
1212 // --- Instrument skin: chrome (topbar, wordmark, nav) -----------------------
1313
14- // 44px chrome strip. Pairs with the .board-stage min-height below, which
15- // re-derives its calc from these two literals.
14+ // 44px chrome strip.
1615 .topbar {
1716 height: 44px;
1817 }
@@ -21,12 +20,8 @@
2120 height: 40px;
2221 }
2322
24- .board-stage {
25- min-height: calc(100vh - 44px - 40px);
26- }
27-
28- // Wordmark and board name read as engraved panel labels: mono, uppercase,
29- // tracked wide.
23+ // The wordmark reads as an engraved panel label: mono, uppercase, tracked
24+ // wide.
3025 .wordmark-text {
3126 font-family: var(--font-mono);
3227 font-size: 13px;
@@ -35,14 +30,6 @@
3530 text-transform: uppercase;
3631 }
3732
38- .board-name {
39- font-family: var(--font-mono);
40- font-size: 11px;
41- font-weight: 600;
42- letter-spacing: 0.12em;
43- text-transform: uppercase;
44- }
45-
4633 // Active nav underlines in accent, not ink.
4734 .topbar-nav-on {
4835 box-shadow: inset 0 -2px 0 var(--accent);
style/_ledger.scssmodified+11 -8
@@ -18,11 +18,6 @@
1818 font-weight: 600;
1919 }
2020
21- .board-name {
22- font-family: var(--font-display);
23- font-size: 15px;
24- }
25-
2621 .auth-title,
2722 .settings-title,
2823 .detail-title,
@@ -36,7 +31,7 @@
3631
3732 .settings-title { font-size: 22px; }
3833 .panel-title { font-size: 15px; }
39- .card-title { font-size: 14px; }
34+ .card-title { font-size: 16px; }
4035
4136 // --- Ledger skin: rules & ornaments (no boxes) -------------------------------
4237
@@ -83,7 +78,7 @@
8378 border-bottom: 1px solid var(--border);
8479 border-radius: 0;
8580 box-shadow: none;
86- padding: 10px 2px;
81+ padding: 12px 2px 14px 2px;
8782 transition: border-color var(--dur-fast) var(--ease);
8883
8984 &:hover {
@@ -98,6 +93,11 @@
9893 .card-title { text-decoration: line-through; }
9994 }
10095
96+ // Ledger entries stack into a continuous ruled column — no gaps between rows.
97+ .column-cards {
98+ gap: 0;
99+ }
100+
101101 .rule-row {
102102 background: transparent;
103103 border: none;
@@ -115,7 +115,10 @@
115115 border-bottom: 1px solid var(--rule-strong);
116116 }
117117
118- .topbar-nav-on { box-shadow: inset 0 -2px 0 var(--rule-strong); }
118+ .topbar-nav-on {
119+ border-bottom: 2px solid var(--rule-strong);
120+ box-shadow: none;
121+ }
119122
120123 // --- Ledger skin: chips as inked text ----------------------------------------
121124
style/main.scssmodified+30 -10
@@ -325,6 +325,19 @@ body {
325325 font-size: 13px;
326326 }
327327
328+// The board page owns the viewport: chrome and the occasional refusal line
329+// keep their natural height, the stage absorbs the rest, the document never
330+// scrolls.
331+body:has(.board-stage) {
332+ height: 100vh;
333+ overflow: hidden;
334+ display: flex;
335+ flex-direction: column;
336+
337+ > * { flex: none; }
338+ > .board-stage { flex: 1; min-height: 0; }
339+}
340+
328341 a {
329342 color: var(--accent);
330343 transition: color var(--dur-fast) var(--ease);
@@ -372,22 +385,22 @@ a {
372385 background: var(--border);
373386 }
374387
375-.board-name {
376- font-size: 13px;
377- font-weight: 600;
378-}
379-
380388 .topbar-nav-links {
381389 display: flex;
382390 gap: 16px;
391+ margin-left: auto;
383392 }
384393
394+// The spacer's flex-grow eats the free space before auto margins see any, so
395+// inside the chrome the nav's auto margin does the pushing instead.
396+.topbar > .spacer { display: none; }
397+
385398 .topbar-nav {
386399 font-family: var(--font-mono);
387400 font-size: 10px;
388401 letter-spacing: 0.08em;
389402 text-transform: uppercase;
390- color: var(--muted-soft);
403+ color: var(--muted);
391404 text-decoration: none;
392405 padding-bottom: 2px;
393406
@@ -683,14 +696,16 @@ a {
683696 position: relative;
684697 display: flex;
685698 flex-direction: column;
686- min-height: calc(100vh - var(--topbar-height) - 52px);
699+ flex: 1;
700+ min-height: 0;
687701 padding: 20px 24px 24px 24px;
688702 }
689703
690704 .board-columns {
691705 flex: 1;
706+ min-height: 0;
692707 display: grid;
693- grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
708+ grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
694709 gap: 16px;
695710 align-items: stretch;
696711 }
@@ -730,8 +745,13 @@ a {
730745 .column-cards {
731746 display: flex;
732747 flex-direction: column;
733- gap: 10px;
748+ gap: 8px;
734749 flex: 1;
750+ min-height: 0;
751+ overflow-y: auto;
752+ scrollbar-width: none;
753+
754+ &::-webkit-scrollbar { display: none; }
735755 }
736756
737757 .column-empty {
@@ -755,7 +775,7 @@ a {
755775 background: var(--surface);
756776 border: 1px solid var(--border);
757777 border-radius: var(--radius-md);
758- padding: 12px;
778+ padding: 10px 12px;
759779 box-shadow: var(--shadow-1);
760780 cursor: pointer;
761781 transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);