From 411324e4c08373c190a6e3e690ac89f40b5c242a Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Sun, 29 Nov 2026 08:28:46 +0100 Subject: [PATCH] Keep full Staff and User sidebar menus in normal page flow --- AGENTS.md | 2 ++ website/docs/FULL-WORKSPACE-SIDEBAR-20261129.md | 11 +++++++++++ website/web/realm-design.css | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 website/docs/FULL-WORKSPACE-SIDEBAR-20261129.md diff --git a/AGENTS.md b/AGENTS.md index daf3f0e5..ae25fee5 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -40,3 +40,5 @@ - Preserve real voting, banking and item-issuance boundaries. Public presentation must not expose serialized items, signatures or service credentials. - Describe what is coded, tested, merged and deployed separately. Mark unavailable features honestly. - The owner requires one shared header and footer across portal, CP and other website surfaces. Use one canonical source and publication path; aligning labels on separate implementations is insufficient. Verify signed-in rendering as well as emitted HTML. + +- Workspace left menus (Staff and User CP) must display every menu item in the normal page flow. Never add a viewport height cap, sticky scrolling container or independent scrollbar to `#sidebar`. Scroll the main page; do not hide overflow to conceal unreachable links. Verify this after shared stylesheet publication. diff --git a/website/docs/FULL-WORKSPACE-SIDEBAR-20261129.md b/website/docs/FULL-WORKSPACE-SIDEBAR-20261129.md new file mode 100644 index 00000000..fbfc5b49 --- /dev/null +++ b/website/docs/FULL-WORKSPACE-SIDEBAR-20261129.md @@ -0,0 +1,11 @@ +# Full workspace left menus — 29 November 2026 + +Owner explicitly requires the complete left menu in BOTH Staff and User CP, without a separate scrollbar. Do not reintroduce a viewport height cap or hide links. Scroll the main page. + +The shared realm-design.css still contained a sticky sidebar with max-height:calc(100vh - 40px) and overflow:auto. Publishing the newer shared stylesheet reintroduced that stale source rule despite the earlier mobile-only correction in v2.css. Replace the rule itself with normal page flow, automatic height, no maximum height and visible overflow. No parallel sidebar implementation, menu items, permissions or navigation routes changed. AGENTS.md now records this product requirement. + +Validation: full asset build and12 shared-chrome tests passed locally. A browser fixture loaded actual CP v2 CSS plus the exact generated shared stylesheet and80 links. At1280px sidebar clientHeight=scrollHeight=1147, overflow=visible,maxHeight=none,position=static; clicking final link scrolled the PAGE475px while sidebar scrollTop remained0. At390px height=scrollHeight=797; final link reachable with pageScroll88 and sidebarScroll0. Test fixture/server remain outside the product/repository and are not published. + +Related completed publication: webc91a1a14f333541017514fcab6621024f8d11783 passedCI928/main929 and staged1856tests. Guarded built publisher changed only the verified cookbook /realm-design.css route to follow current/dist/shared-chrome/realm-design.css with a legacy rollback fallback. Route beforeSHA256cd271267991bf6778b866dde9a4bfb7fec431e2d6be6d63dbe5c3188ab0c7c42; after4fc45d536289c708f7649fe2fc44fb5e3aa517f59c4f95a22b7d575bec953da9. Backup:/home/dunerealms/backups/shared-design-route-c91a1a14f333541017514fcab6621024f8d11783/dunerealms-cookbook-e40883ba.conf. Actual servedCSS SHA256c68b897444c60d08e3fc054921587bc42a684bdfe0d7ef29a975dba3f81b38ca matched built bytes. Live Staff/CP menuLeft32 at1920verified. Portal/Staff/CP font all13pxCinzel; owner's font discrepancy was browser zoom and accepted, so fonts unchanged. + +This sidebar correction remains subject to canonical CI and live verification; do not confuse the preceding route publication with deployment of this source change. diff --git a/website/web/realm-design.css b/website/web/realm-design.css index 5106e934..59fe5436 100644 --- a/website/web/realm-design.css +++ b/website/web/realm-design.css @@ -68,7 +68,7 @@ body.dr-interior #realm-menu a small{font-size:11px!important} .dr-design :is(.tabs,.cp-v2-template-tabs,.progression-tabs,.politics-tabs,.bank-tabs,.feature-tabs) button{padding:10px 15px;min-height:44px;border:1px solid #8e7945;background:#17362b;color:#eadbb1;font-size:14px;font-family:var(--dr-font);box-shadow:none} .dr-design :is(.tabs,.cp-v2-template-tabs,.progression-tabs,.politics-tabs,.bank-tabs,.feature-tabs) [aria-selected=true]{background:linear-gradient(#736030,#3a482b);border-color:#e4c26c;color:#fff1ba} body.dr-design.dr-workspace:has(#content) .layout{display:grid!important;grid-template-columns:245px minmax(0,1fr)!important;gap:24px!important;max-width:1440px!important;margin:0 auto!important;padding:24px!important;background:transparent!important;min-height:70vh} -body.dr-design.dr-workspace:has(#content) #sidebar{padding:0!important;border:0!important;background:transparent!important;position:sticky;top:20px;align-self:start;max-height:calc(100vh - 40px);overflow:auto} +body.dr-design.dr-workspace:has(#content) #sidebar{padding:0!important;border:0!important;background:transparent!important;position:static;top:auto;align-self:start;height:auto!important;max-height:none!important;overflow:visible!important} body.dr-design.dr-workspace:has(#content) #sidebar-right,body.dr-design.dr-workspace:has(#content) .side-hero,body.dr-design.dr-workspace:has(#content) .command-banner{display:none!important} body.dr-design.dr-workspace:has(#content) #content{padding:0!important;border:0!important;background:transparent!important;min-width:0} body.dr-design.dr-workspace:has(#content) #content>.hero{display:flex;gap:22px;min-height:155px!important;padding:24px 30px!important;margin-bottom:24px!important;border:1px solid #b89a52!important;border-radius:6px!important;background:linear-gradient(90deg,#0c2a21ee,#0d2d23ca 60%,#0c291c55),url('https://www.dunerealms.com/assets/minecraft-hero.webp') center 46%/cover!important;box-shadow:inset 0 0 0 3px #0f2c22!important}