From 3fe43710fa579beee9ad1b02d1765903a8b2215d Mon Sep 17 00:00:00 2001 From: Zoe Forbes Date: Sun, 15 Feb 2026 09:43:15 -0600 Subject: [PATCH] fix(ui): remove addStretch from auth panel, use compact size policy Replace layout.addStretch() with QSizePolicy.Maximum so the Database Auth dock panel only takes the height its content needs, leaving more vertical space for the Database Activity panel below. Closes #190 --- freecad/silo_commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/freecad/silo_commands.py b/freecad/silo_commands.py index 12604ba..4bf44b8 100644 --- a/freecad/silo_commands.py +++ b/freecad/silo_commands.py @@ -2667,7 +2667,11 @@ class SiloAuthDockWidget: btn_row.addWidget(settings_btn) layout.addLayout(btn_row) - layout.addStretch() + + # Keep the auth panel compact so the Activity panel below gets more space + self.widget.setSizePolicy( + QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum + ) # -- Status refresh -----------------------------------------------------