From 08e1fd7ca0f07022a328ae3fe114c3b9f92a85f6 Mon Sep 17 00:00:00 2001 From: Reece Date: Thu, 3 Jul 2025 12:20:32 +0100 Subject: [PATCH] Fix home nav positioning --- stirling-pdf/src/main/resources/templates/home.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stirling-pdf/src/main/resources/templates/home.html b/stirling-pdf/src/main/resources/templates/home.html index f964a5715..3d4908e9c 100644 --- a/stirling-pdf/src/main/resources/templates/home.html +++ b/stirling-pdf/src/main/resources/templates/home.html @@ -237,6 +237,13 @@ el.style.transform = `scale(${finalS})`; el.style.transformOrigin = 'top center'; 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 prevH = window.innerHeight;