mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
Fix home nav positioning
This commit is contained in:
parent
a3962a74c3
commit
08e1fd7ca0
@ -237,6 +237,13 @@
|
|||||||
el.style.transform = `scale(${finalS})`;
|
el.style.transform = `scale(${finalS})`;
|
||||||
el.style.transformOrigin = 'top center';
|
el.style.transformOrigin = 'top center';
|
||||||
el.style.height = `${origH * finalS}px`;
|
el.style.height = `${origH * finalS}px`;
|
||||||
|
|
||||||
|
// Adjust features container width to use full available space
|
||||||
|
const featuresContainer = document.querySelector('.features-container');
|
||||||
|
if (featuresContainer) {
|
||||||
|
const compensatedWidth = Math.min(140, 100 / finalS); // Max 140%, min what's needed
|
||||||
|
featuresContainer.style.width = `${compensatedWidth}%`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let prevW = window.innerWidth;
|
let prevW = window.innerWidth;
|
||||||
let prevH = window.innerHeight;
|
let prevH = window.innerHeight;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user