Skip to content

Commit 265d8c9

Browse files
cloutprotocolclaude
andcommitted
fix: prevent sidebar scrolling behind title bar on desktop
Constrain body to calc(100dvh - 28px) with margin-top offset. Lock html/body overflow:hidden so nothing enters the title bar zone. Sidebar and root container fill remaining height only. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6afb174 commit 265d8c9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/bun/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,11 @@ console.log(`[app] Loading: ${BASE_URL}/market`);
9696
/* ------------------------------------------------------------------ */
9797

9898
const INJECTED_CSS = `
99-
body { padding-top: 28px !important; }
100-
html { background: #0a0a0a; }
99+
html { background: #0a0a0a; overflow: hidden !important; }
100+
body { margin-top: 28px !important; height: calc(100dvh - 28px) !important; overflow: hidden !important; }
101+
body > div:first-child { height: 100% !important; max-height: 100% !important; }
102+
/* Sidebar must respect the reduced viewport */
103+
aside { height: 100% !important; max-height: 100% !important; }
101104
`;
102105

103106
function injectCSS() {

0 commit comments

Comments
 (0)