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;