Skip to content

Commit cb14d8c

Browse files
committed
Compact project view chrome
1 parent f13bc33 commit cb14d8c

2 files changed

Lines changed: 17 additions & 14 deletions

File tree

‎public/ui/console2/console2.css‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
Header
101101
========================================================================== */
102102
.c2-header {
103-
display: flex; flex-direction: column; gap: 8px;
104-
padding: 14px 20px 12px;
103+
display: flex; flex-direction: column; gap: 4px;
104+
padding: 8px 16px 6px;
105105
background: linear-gradient(color-mix(in srgb, var(--surface) 70%, transparent), color-mix(in srgb, var(--bg) 60%, transparent));
106106
backdrop-filter: var(--c2-blur);
107107
border-bottom: 1px solid var(--c2-line);
@@ -119,7 +119,7 @@
119119
those overlays still cover the header exactly as before. */
120120
z-index: 20;
121121
}
122-
.c2-header-top { display: flex; align-items: center; gap: 20px; }
122+
.c2-header-top { display: flex; align-items: center; gap: 12px; }
123123
/* Icon-only "go somewhere" links: the hub link on the left of the header and
124124
the settings gear on the right. Deliberately one rule, not two lookalikes —
125125
they are the same affordance pointing at different destinations, and the
@@ -145,6 +145,7 @@
145145
.c2-new:hover { filter: brightness(1.08); }
146146

147147
.c2-header-echo { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); min-height: 22px; }
148+
.c2-header-echo:empty { display: none; }
148149
.c2-header-echo b { color: var(--text); font-variant-numeric: tabular-nums; }
149150
.c2-header-echo .sep { color: var(--text-faint); }
150151

@@ -240,14 +241,14 @@
240241
/* Mobile-only collapse toggle for the whole pulse area — desktop never
241242
renders it and never honors .pb-collapsed (see the responsive block). */
242243
.c2-pb-collapse { display: none; }
243-
.c2-pulsebar { display: flex; align-items: stretch; gap: 12px; padding: 8px 16px; }
244-
.c2-pb-tiles { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
244+
.c2-pulsebar { display: flex; align-items: stretch; gap: 8px; padding: 5px 16px; }
245+
.c2-pb-tiles { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
245246
.c2-pb-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
246-
flex: 1 0 86px; min-height: 52px; padding: 6px 10px; background: var(--c2-glass); border: 1px solid var(--c2-line);
247+
flex: 1 0 80px; min-height: 48px; padding: 4px 8px; background: var(--c2-glass); border: 1px solid var(--c2-line);
247248
border-radius: 10px; box-shadow: inset 0 1px 0 var(--c2-rim-soft); cursor: pointer; color: var(--text);
248249
transition: border-color 0.15s var(--ease), transform 0.1s var(--ease); }
249250
.c2-pb-item:hover { transform: translateY(-1px); border-color: var(--c2-line-2); }
250-
.c2-pb-v { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
251+
.c2-pb-v { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
251252
.c2-pb-k { font-family: var(--font-display); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
252253
.c2-pb-sub { font-size: 9px; color: var(--text-dim); }
253254
.c2-pb-item.tone-green .c2-pb-v { color: var(--green); }
@@ -775,14 +776,15 @@ select.c2-linktype { flex: 0 0 auto; max-width: 140px; }
775776
html, body { overflow-x: hidden; }
776777

777778
/* ---- header: wrap + condense to icon + short label ---------------------- */
778-
.c2-header { padding: calc(10px + env(safe-area-inset-top)) 12px 8px; gap: 6px; }
779-
.c2-header-top { flex-wrap: wrap; gap: 8px; }
779+
.c2-header { padding: calc(6px + env(safe-area-inset-top)) 8px 6px; gap: 4px; }
780+
.c2-header-top { flex-wrap: wrap; gap: 4px; }
780781
.c2-brand { min-width: 0; flex: 1 1 auto; }
781782
.c2-brand-name { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
782783
.c2-brand-sub { display: none; }
783784
.c2-omni { order: 3; flex-basis: 100%; max-width: none; }
784785
.c2-hublink, .c2-setlink { min-width: 44px; min-height: 44px; }
785-
.c2-header-right { gap: 6px; }
786+
.c2-header-right { flex-wrap: nowrap; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
787+
.c2-header-right::-webkit-scrollbar { display: none; }
786788
.c2-sync { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 8px; }
787789
.c2-header-echo { flex-wrap: wrap; row-gap: 4px; }
788790

@@ -792,8 +794,8 @@ select.c2-linktype { flex: 0 0 auto; max-width: 140px; }
792794
.c2-themesw-pulse .c2-themesw-btn { min-width: 44px; min-height: 44px; }
793795

794796
/* ---- pulse bar: tiles scroll horizontally; sparkline yields its space --- */
795-
.c2-pulsebar { padding: 8px 12px; gap: 8px; }
796-
.c2-pb-item { flex: 1 0 72px; min-height: 48px; }
797+
.c2-pulsebar { padding: 5px 12px; gap: 6px; }
798+
.c2-pb-item { flex: 1 0 72px; min-height: 44px; }
797799
.c2-pb-side .c2-spark { display: none; }
798800
.c2-pb-more { min-height: 48px; min-width: 44px; }
799801
.c2-pulsex { grid-template-columns: 1fr; padding: 8px 12px 12px; }

‎public/ui/console2/state.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ export const c2 = {
1717

1818
// Persistent workflow rail: unlike one-shot learning nudges this remains a
1919
// dependable "where am I / what next?" path for people learning beads from
20-
// the UI. Experienced users can collapse it to a compact summary.
21-
workflowCollapsed: signal((() => { try { return localStorage.getItem('bd_c2_workflow') === 'closed'; } catch { return false; } })()),
20+
// the UI. Keep the canvas visible by default; users can expand it when they
21+
// want the full five-step guide, and the choice persists.
22+
workflowCollapsed: signal((() => { try { return localStorage.getItem('bd_c2_workflow') !== 'open'; } catch { return true; } })()),
2223

2324
// Map: which OVERLAY link types (everything but blocking, which is always
2425
// on) are currently drawn — a Set of display type strings, e.g. {'related'}.

0 commit comments

Comments
 (0)