From f85f9b49d3dd7d4f9497666e334214c93b7e5510 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Mon, 23 Nov 2026 19:50:22 +0100 Subject: [PATCH] app: keep the list scroll bar off the clip view The clip screen fell through to the history and settings branch, so their thumb stayed where its own viewport left it: a grey bar on the clip's right that scrolled nothing. Each screen now names its own bar, and the clip draws none. --- app/src/app.rs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/app/src/app.rs b/app/src/app.rs index ec9d33c..13aaa90 100644 --- a/app/src/app.rs +++ b/app/src/app.rs @@ -1324,15 +1324,11 @@ pub fn view(app: &App, cx: &mut Cx) -> El { .child(app.events_scroll.thumb(p, "events-thumb", "event-scroller")), Screen::Review => window, Screen::Clips => window.child(app.clips_scroll.thumb(p, "clips-thumb", "clips-scroller")), - _ => window.child(app.scroll.thumb( - p, - "scroll-thumb", - if app.screen == Screen::Settings { - "scroller" - } else { - "list-scroller" - }, - )), + Screen::Settings => window.child(app.scroll.thumb(p, "scroll-thumb", "scroller")), + Screen::History => window.child(app.scroll.thumb(p, "scroll-thumb", "list-scroller")), + // A clip fills its screen with a player, not a list: the history or settings thumb would + // stay where its own viewport left it, a bar on the clip's right that scrolls nothing. + Screen::Clip => window, }; if app.screen == Screen::Settings && app.form.add_open { screens::settings::add_dialog(app, p, &mut overlays);