From 54b3a7350d6687f8f89e55cb84df4d8c5c60a7d4 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 18 May 2026 17:17:31 -0600 Subject: [PATCH] fix(slint): drop the reserved horizontal scrollbar gutter on Home The carousels' clipped, oversized inner track inflated the scroll content's preferred width, so the vertical ScrollView reserved a bottom gutter for a horizontal scrollbar that is never shown. Pin the ScrollView viewport-width to its visible width so horizontal content can never overflow. cc --- crates/qbz-slint/ui/discover/HomeView.slint | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/qbz-slint/ui/discover/HomeView.slint b/crates/qbz-slint/ui/discover/HomeView.slint index 57f32c964..b5b3f8a38 100644 --- a/crates/qbz-slint/ui/discover/HomeView.slint +++ b/crates/qbz-slint/ui/discover/HomeView.slint @@ -159,8 +159,12 @@ export component HomeView inherits Rectangle { } // --- Scrollable sections ----------------------------------------- - ScrollView { + // viewport-width is pinned to the visible width so the carousels' + // clipped (oversized) content never triggers a horizontal scrollbar + // or reserves a gutter for one. + home-scroll := ScrollView { vertical-stretch: 1; + viewport-width: home-scroll.visible-width; horizontal-scrollbar-policy: ScrollBarPolicy.always-off; VerticalLayout { padding: 32px;