add minimum size to combobox

This commit is contained in:
Logan McNaughton
2025-08-05 21:55:41 +02:00
parent 98c9cf142d
commit b1fcaa5cf4
+2 -2
View File
@@ -94,7 +94,7 @@ export component ControllerConfig inherits Page {
alignment: space-between;
for player in [0, 1, 2, 3]: ComboBox {
model: ControllerData.input_profiles;
min-width: self.preferred-width;
min-width: self.preferred-width > 150px ? self.preferred-width : 150px;
current-index: ControllerData.selected_profile_binding[player];
selected => {
ControllerData.selected_profile_binding[player] = self.current-index;
@@ -110,7 +110,7 @@ export component ControllerConfig inherits Page {
alignment: space-between;
for player in [0, 1, 2, 3]: ComboBox {
model: ControllerData.controller_names;
min-width: self.preferred-width;
min-width: self.preferred-width > 300px ? self.preferred-width : 300px;
current-index: ControllerData.selected_controller[player];
selected => {
ControllerData.selected_controller[player] = self.current-index;