ui: Origin dropdown height should match workbench dropdown height #231
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Origin selector dropdown (
OriginSelectorWidget, aQToolButton) renders at a different visual height than the Workbench selector dropdown (WorkbenchComboBox, aQComboBox) in the toolbar. They should have the same height for visual consistency.Current State
Both widgets are styled in
src/Gui/Stylesheets/KindredCreate.qsswithpadding: 4px 8pxbut no explicit height constraint. BecauseQToolButtonandQComboBoxhave different intrinsic size hints, they render at different heights.WorkbenchComboBox (lines 1183-1199):
OriginSelectorWidget (lines 1202-1210):
Additionally,
OriginSelectorWidget::setupUi()insrc/Gui/OriginSelectorWidget.cppsetssetSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed)but no explicit height.Proposed Fix
Add matching
min-height/max-heightto both widgets inKindredCreate.qss, or set a fixed height in theOriginSelectorWidget::setupUi()to match theWorkbenchComboBoxrendered height. The origin widget should follow the workbench dropdown's height.Affected Files
src/Gui/Stylesheets/KindredCreate.qss— widget styling (lines 1183-1221)src/Gui/OriginSelectorWidget.cpp—setupUi()size configuration