mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-27 06:39:24 +00:00
Improved scaling of navbar for page-view and redact
This commit is contained in:
parent
d79d179d80
commit
8c8d0d16c2
@ -3044,7 +3044,7 @@ body{
|
|||||||
|
|
||||||
#outerContainer{
|
#outerContainer{
|
||||||
width:100%;
|
width:100%;
|
||||||
height: calc(100% - var(--navbar-height));
|
height: 100%;
|
||||||
position:relative;
|
position:relative;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
|
|
||||||
// Set CSS custom property for mobile navbar scaling (for sidebar positioning)
|
// Set CSS custom property for mobile navbar scaling (for sidebar positioning)
|
||||||
// Use the ACTUAL scaled height, not a fixed assumption
|
// Use the ACTUAL scaled height, not a fixed assumption
|
||||||
const baseHeight = 60;
|
const baseHeight = 64;
|
||||||
const actualScaledHeight = baseHeight * navScale;
|
const actualScaledHeight = baseHeight * navScale;
|
||||||
document.documentElement.style.setProperty('--navbar-height', `${actualScaledHeight}px`);
|
document.documentElement.style.setProperty('--navbar-height', `${actualScaledHeight}px`);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user