Limit popout height to 85% of screen for portrait content

This commit is contained in:
pax 2026-04-06 19:00:22 -05:00
parent 924e065e65
commit aaf33dd7c7

View File

@ -258,7 +258,7 @@ class FullscreenPreview(QMainWindow):
if screen: if screen:
avail = screen.availableGeometry() avail = screen.availableGeometry()
max_w = avail.width() max_w = avail.width()
max_h = avail.height() max_h = int(avail.height() * 0.85) # 15% margin top+bottom
else: else:
max_w = max_h = 9999 max_w = max_h = 9999
w = min(self.width(), max_w) w = min(self.width(), max_w)