fix(ui): rebalance Auth/Activity dock panel sizes
Some checks failed
Build and Test / build (pull_request) Has been cancelled
Some checks failed
Build and Test / build (pull_request) Has been cancelled
Use resizeDocks() to give Database Activity 80% of the vertical space in the right dock area, keeping Database Auth compact at 120px. Closes #190, Closes #191
This commit is contained in:
@@ -154,6 +154,11 @@ def _setup_silo_activity_panel():
|
||||
|
||||
panel.setWidget(widget)
|
||||
mw.addDockWidget(QtCore.Qt.RightDockWidgetArea, panel)
|
||||
|
||||
# Give the activity panel most of the vertical space
|
||||
auth_panel = mw.findChild(QtWidgets.QDockWidget, "SiloDatabaseAuth")
|
||||
if auth_panel:
|
||||
mw.resizeDocks([auth_panel, panel], [120, 500], QtCore.Qt.Vertical)
|
||||
except Exception as e:
|
||||
FreeCAD.Console.PrintLog(f"Create: Silo activity panel skipped: {e}\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user