From 0a1fbb790603fdc4ca6fdcf03474daf950367d78 Mon Sep 17 00:00:00 2001 From: pax Date: Mon, 6 Apr 2026 19:02:07 -0500 Subject: [PATCH] Landscape popout minimum width 35% of screen --- booru_viewer/gui/preview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/booru_viewer/gui/preview.py b/booru_viewer/gui/preview.py index f62548a..dbed668 100644 --- a/booru_viewer/gui/preview.py +++ b/booru_viewer/gui/preview.py @@ -261,7 +261,8 @@ class FullscreenPreview(QMainWindow): max_h = int(avail.height() * 0.85) # 15% margin top+bottom else: max_w = max_h = 9999 - w = min(self.width(), max_w) + min_w = int(max_w * 0.35) if aspect >= 1 else 0 # landscape minimum + w = max(min(self.width(), max_w), min_w) new_h = int(w / aspect) if new_h > max_h: new_h = max_h