From 92586c2fd1e491fb1ea223d4bd2da0724436b2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Romero?= Date: Thu, 8 Oct 2026 12:25:56 +0000 Subject: [PATCH] fix: fit compact preference selectors --- ui/components/settings-components.slint | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/components/settings-components.slint b/ui/components/settings-components.slint index a8a2ff2b..ed47c93e 100644 --- a/ui/components/settings-components.slint +++ b/ui/components/settings-components.slint @@ -171,7 +171,8 @@ export component SettingsSelectRow inherits Rectangle { in property description-color; callback selected(int, string); - height: root.compact ? 70px + root.compact-description-height : 58px; + // Two 8px insets, the 20px title, two 7px gaps and the 36px selector. + height: root.compact ? 86px + root.compact-description-height : 58px; vertical-stretch: 0; if !root.compact : HorizontalBox { @@ -202,6 +203,7 @@ export component SettingsSelectRow inherits Rectangle { } if root.compact : VerticalBox { + padding: 8px; spacing: 7px; Text { height: 20px; @@ -218,7 +220,7 @@ export component SettingsSelectRow inherits Rectangle { wrap: word-wrap; } SettingsSelect { - width: parent.width; + horizontal-stretch: 1; choices: root.choices; selected-index <=> root.selected-index; selection-changed(index, value) => { root.selected(index, value); }