: asapien/signet

commit 940ff07abd404d39931b4c95d84fc8d78f2af32e
parent 0c102314e42ae007fb1265511afdf9e558f90b2c
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:16:46 +0530

Fix: Position side panel fixed outside scrollable pages area

The side panel should remain stationary while pages scroll. Changed from
sticky positioning (moves with scroll) to fixed positioning, placed to
the right of the viewport with proper z-index.

Layout:
- Pages scroll within main content area
- Side panel fixed on the right side (right: 1.2rem, top: 2.8rem)
- Below navbar, stays visible while scrolling pages
- Responsive: reverts to relative positioning on mobile (< 900px)

This prevents the 'startle' effect of the panel moving with page scroll.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/www/style.css b/www/style.css
@@ -46,7 +46,8 @@ tr.click:hover td { background: #f6f9fc; }
 /* document workspace */
 .workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; width: 100%; max-width: 1500px; margin: 0 auto; }
 @media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } }
-.side { position: sticky; top: 1.2rem; max-height: calc(100vh - 4.4rem); overflow-y: auto; flex-shrink: 0; }
+.side { position: fixed; right: 1.2rem; top: 2.8rem; width: 340px; max-height: calc(100vh - 4.4rem); overflow-y: auto; z-index: 50; }
+@media (max-width: 900px) { .side { position: relative; right: auto; top: auto; width: auto; max-height: none; margin-top: 1rem; } }
 .pages { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
 .page { position: relative; width: 100%; max-width: 1000px; background: #fff; box-shadow: 0 1px 4px rgba(20, 30, 45, .25); line-height: 0; }
 .page > img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }