From 803b5f5b2497bf79c67f317debdfe91a0c4c0c85 Mon Sep 17 00:00:00 2001 From: pax Date: Mon, 6 Apr 2026 19:15:17 -0500 Subject: [PATCH] Remove landscape minimum, respect user's saved window width with 85% height cap --- booru_viewer/gui/preview.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/booru_viewer/gui/preview.py b/booru_viewer/gui/preview.py index fbe684d..2040160 100644 --- a/booru_viewer/gui/preview.py +++ b/booru_viewer/gui/preview.py @@ -262,8 +262,7 @@ class FullscreenPreview(QMainWindow): max_h = int(avail.height() * 0.85) # 15% margin top+bottom else: max_w = max_h = 9999 - min_w = int(max_w * 0.45) if aspect >= 1 else 0 # landscape minimum - w = max(min(self.width(), max_w), min_w) + w = min(self.width(), max_w) new_h = int(w / aspect) if new_h > max_h: new_h = max_h