fix(ui): reduce settings dialog height to prevent overflow on lower-res screens (#456)

Reduce dialog height ratio from 50% to 40% of viewport and revert
Advanced tab scrolled window min_content_height from 500px back to
350px. The 500px min content height (introduced for Remote Server
section) forced the dialog to grow beyond its viewport cap on screens
under 1000px tall, causing it to dominate lower-resolution displays.
This commit is contained in:
Jatin K Malik
2026-06-06 19:33:33 -07:00
committed by GitHub
parent 0c3c32f584
commit 9c8710a6d6
+2 -2
View File
@@ -811,7 +811,7 @@ class SettingsDialog(Gtk.Dialog):
else:
screen_height = 1080 # Default fallback
screen_width = 1920
dialog_height = int(screen_height * 0.5)
dialog_height = int(screen_height * 0.4)
dialog_width = min(700, int(screen_width * 0.8))
self.set_default_size(dialog_width, dialog_height)
self.get_style_context().add_class("settings-dialog")
@@ -1646,7 +1646,7 @@ class SettingsDialog(Gtk.Dialog):
# Scrollable container for the controls
scrolled = Gtk.ScrolledWindow()
scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
scrolled.set_min_content_height(500)
scrolled.set_min_content_height(350)
controls_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, spacing=12)