From 2f1dfdbcbe3ba640e62ce6805f7f876db1c9cb9c Mon Sep 17 00:00:00 2001 From: Reece Date: Thu, 3 Jul 2025 17:16:24 +0100 Subject: [PATCH] Improved tall bonus --- stirling-pdf/src/main/resources/templates/home.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stirling-pdf/src/main/resources/templates/home.html b/stirling-pdf/src/main/resources/templates/home.html index ec61f03c0..fdf053750 100644 --- a/stirling-pdf/src/main/resources/templates/home.html +++ b/stirling-pdf/src/main/resources/templates/home.html @@ -232,9 +232,9 @@ const space = container.offsetHeight - navH; const origH = el.scrollHeight; - // Adjust for taller screens - use more vertical space on tall aspect ratios + // Progressive bonus based on how tall the screen is const aspectRatio = window.innerWidth / window.innerHeight; - const tallScreenBonus = aspectRatio < 1.5 ? 0.1 : 0; // 10% bonus for tall screens + const tallScreenBonus = Math.max(0, (1.8 - aspectRatio) * 0.15); // More bonus for taller screens let finalS = Math.min(s * 0.75, (space * (0.98 + tallScreenBonus)) / origH); finalS = Math.max(0.7, finalS);