From 4a604d6d5457e415501f88216b71234f057cceb9 Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Sat, 7 Feb 2026 23:29:27 +0300 Subject: [PATCH] Fix compact donut detection: use height threshold for landscape phones iPhone 17 Pro Max landscape viewport is ~956px wide, above the 850px threshold. Use height <= 500px instead to detect all landscape phones regardless of width. Co-Authored-By: Claude Opus 4.6 --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 51a2631..4476486 100644 --- a/app.js +++ b/app.js @@ -2765,7 +2765,7 @@ function adjustChartSize() { const screenWidth = window.innerWidth; const isMobile = screenWidth <= 500; - const isLandscapePhone = screenWidth <= 850 && window.innerHeight < window.innerWidth; + const isLandscapePhone = window.innerHeight < window.innerWidth && window.innerHeight <= 500; const isCompact = isMobile || isLandscapePhone; // Compact mode (portrait phones + landscape phones): extend layers to fill container