: asapien/signet

commit c829fbf4b1960f7618709dfdb0a3598a941c0da6
parent 940ff07abd404d39931b4c95d84fc8d78f2af32e
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:18:50 +0530

Fix: Improve side panel positioning and scrollbar placement

Changes:
- Workspace now contains only pages column (single column grid)
- Side panel fixed to right edge (right: 0) with 360px width
- Workspace max-width reduced to account for side panel (calc(100% - 380px))
- Scrollbar now appears only within main content area
- Side panel styling: fixed positioning with proper background and padding
- Mobile: side panel reverts to relative positioning below pages

This eliminates the awkward spacing and ensures scrollbar doesn't appear
beyond the side panel, making the layout more compact and intentional.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 file changed, 4 insertions(+), 4 deletions(-)
M
www/style.css
|
8
++++----
diff --git a/www/style.css b/www/style.css
@@ -44,10 +44,10 @@ tr.click:hover td { background: #f6f9fc; }
 .status.DISAPPROVED { background: #f8d9d8; color: var(--danger); }
 
 /* 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: 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; } }
+.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; width: 100%; max-width: calc(100% - 380px); margin: 0 auto; position: relative; }
+@media (max-width: 900px) { .workspace { max-width: 100%; } }
+.side { position: fixed; right: 0; top: 2.8rem; width: 360px; max-height: calc(100vh - 4.4rem); overflow-y: auto; background: var(--bg); padding-right: 1.2rem; z-index: 50; }
+@media (max-width: 900px) { .side { position: relative; right: auto; top: auto; width: 100%; max-height: none; background: transparent; padding-right: 0; 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; }