fix(frontend): restore global nav bar on document detail page
The document viewer container was using fixed inset-0 z-50 which covered the sticky global nav bar. Now measures nav height at mount and offsets the container top accordingly, dropping z-index to z-40. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -75,7 +75,7 @@ let dragStartHeight = 0;
|
||||
|
||||
function fullHeight() {
|
||||
const topbar = document.querySelector('[data-topbar]');
|
||||
return window.innerHeight - (topbar?.getBoundingClientRect().height ?? 0);
|
||||
return window.innerHeight - (topbar?.getBoundingClientRect().bottom ?? 0);
|
||||
}
|
||||
|
||||
function openTab(tab: Tab) {
|
||||
|
||||
Reference in New Issue
Block a user