From 9c8710a6d632333258248b94a44f7725bdd3e1de Mon Sep 17 00:00:00 2001 From: Jatin K Malik Date: Sat, 6 Jun 2026 19:33:33 -0700 Subject: [PATCH] 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. --- src/vocalinux/ui/settings_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vocalinux/ui/settings_dialog.py b/src/vocalinux/ui/settings_dialog.py index 576deb1..e03c876 100644 --- a/src/vocalinux/ui/settings_dialog.py +++ b/src/vocalinux/ui/settings_dialog.py @@ -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)