aboutsummaryrefslogtreecommitdiff
path: root/src/app/state.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-04-06 16:13:12 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-04-06 16:13:12 +0300
commitc1e100be8fa15bc51f3c2e0b1edb38aa95a7cccd (patch)
treeb6d1a306e52da01a2bd03abb0e0348658674fd74 /src/app/state.rs
parentfdea0bbbf606fcd8cfec1613a3aaf610bfb9b3cf (diff)
fix(ui): make sidebar spaces list scrollable
Diffstat (limited to 'src/app/state.rs')
-rw-r--r--src/app/state.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/state.rs b/src/app/state.rs
index c55b5cd8..9f2e8e5b 100644
--- a/src/app/state.rs
+++ b/src/app/state.rs
@@ -461,6 +461,9 @@ pub(crate) enum DragTarget {
source_ws_idx: usize,
insert_idx: Option<usize>,
},
+ WorkspaceListScrollbar {
+ grab_row_offset: u16,
+ },
PaneSplit {
path: Vec<bool>,
direction: Direction,
@@ -562,6 +565,7 @@ pub struct AppState {
pub onboarding_list: SelectionListState,
pub release_notes: Option<ReleaseNotesState>,
pub keybind_help: KeybindHelpState,
+ pub workspace_scroll: usize,
// View geometry (computed before render, consumed by render + mouse)
pub view: ViewState,
pub(crate) drag: Option<DragState>,
@@ -660,6 +664,7 @@ impl AppState {
onboarding_list: SelectionListState::new(1),
release_notes: None,
keybind_help: KeybindHelpState { scroll: 0 },
+ workspace_scroll: 0,
view: ViewState {
sidebar_rect: Rect::default(),
workspace_card_areas: Vec::new(),