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.
This commit is contained in:
vhaudiquet committed 2026-11-23 19:50:22 +01:00
1 parent 7463cf3905
commit f85f9b49d3
1 file changed
+5 -9
+5 -9
View File
@@ -1324,15 +1324,11 @@ pub fn view(app: &App, cx: &mut Cx<App>) -> El {
.child(app.events_scroll.thumb(p, "events-thumb", "event-scroller")), .child(app.events_scroll.thumb(p, "events-thumb", "event-scroller")),
Screen::Review => window, Screen::Review => window,
Screen::Clips => window.child(app.clips_scroll.thumb(p, "clips-thumb", "clips-scroller")), Screen::Clips => window.child(app.clips_scroll.thumb(p, "clips-thumb", "clips-scroller")),
_ => window.child(app.scroll.thumb( Screen::Settings => window.child(app.scroll.thumb(p, "scroll-thumb", "scroller")),
p, Screen::History => window.child(app.scroll.thumb(p, "scroll-thumb", "list-scroller")),
"scroll-thumb", // A clip fills its screen with a player, not a list: the history or settings thumb would
if app.screen == Screen::Settings { // stay where its own viewport left it, a bar on the clip's right that scrolls nothing.
"scroller" Screen::Clip => window,
} else {
"list-scroller"
},
)),
}; };
if app.screen == Screen::Settings && app.form.add_open { if app.screen == Screen::Settings && app.form.add_open {
screens::settings::add_dialog(app, p, &mut overlays); screens::settings::add_dialog(app, p, &mut overlays);