: asapien/signet

commit 15ebe45498bd13ae4ebaa6ef0917a7167f690894
parent 96be80ec8227896998d108617b00a1fa6f383023
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:23:35 +0530

Fix: Implement proper 70/30 layout with pages and side panel

Create a true two-column layout:
- .workspace: flex container with row direction, 100% width/height
- .pages: left column (70%), contains preview pages, scrollable
- .side: right column (30%), contains form fields, scrollable

Scrollbar now appears within the pages column (70%), not at viewport edge.
Each column scrolls independently.

Mobile: flex-direction: column stacks pages above side panel on narrow screens.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 file changed, 5 insertions(+), 5 deletions(-)
M
www/style.css
|
10
+++++-----
diff --git a/www/style.css b/www/style.css
@@ -13,8 +13,7 @@ a { color: var(--accent); }
 .bar .brand { font-weight: 700; letter-spacing: .06em; color: #fff; text-transform: uppercase; }
 .bar nav { display: flex; gap: 1rem; flex: 1; }
 #whoami { font-size: 12px; color: #cfd8e3; }
-main { margin-top: 2.8rem; padding: 1.2rem; padding-right: calc(1.2rem + 360px + 17px); width: 100%; max-width: none; flex: 1; overflow-y: auto; overflow-x: hidden; }
-@media (max-width: 900px) { main { padding-right: 1.2rem; } }
+main { margin-top: 2.8rem; width: 100%; flex: 1; overflow: hidden; }
 h1 { font-size: 1.25rem; margin: 0 0 1rem; }
 h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 1.2rem 0 .5rem; }
 .card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }

@@ -45,9 +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); gap: 1rem; align-items: start; width: 100%; max-width: 1000px; margin: 0 auto; position: relative; }
-.side { position: fixed; right: 17px; 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; } }
+.workspace { display: flex; width: 100%; height: 100%; gap: 0; }
+.pages { flex: 0 0 70%; padding: 1.2rem; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
+.side { flex: 0 0 30%; padding: 1.2rem; background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto; }
+@media (max-width: 900px) { .workspace { flex-direction: column; } .pages { flex: 0 0 auto; } .side { flex: 0 0 auto; background: transparent; border-left: none; } }
 .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; }