diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-06 19:36:23 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-06 19:36:23 +0300 |
| commit | d859cf21f565e23503c6ba351c62c32c33153d77 (patch) | |
| tree | 27bac56973e903da8d81820948c2a771e8d42ffe /src/app/state.rs | |
| parent | cbe5c150baa147649912bb1bfad40522dc3c25f3 (diff) | |
fix: keep sidebar width stable and persist user resize
Diffstat (limited to 'src/app/state.rs')
| -rw-r--r-- | src/app/state.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/state.rs b/src/app/state.rs index 60cb0511..84920131 100644 --- a/src/app/state.rs +++ b/src/app/state.rs @@ -595,6 +595,7 @@ pub struct AppState { // Config pub prefix_code: KeyCode, pub prefix_mods: KeyModifiers, + pub default_sidebar_width: u16, pub sidebar_width: u16, pub sidebar_width_auto: bool, pub sidebar_collapsed: bool, @@ -703,8 +704,9 @@ impl AppState { toast: None, prefix_code: KeyCode::Char('b'), prefix_mods: KeyModifiers::CONTROL, + default_sidebar_width: 26, sidebar_width: 26, - sidebar_width_auto: true, + sidebar_width_auto: false, sidebar_collapsed: false, agent_panel_scope: AgentPanelScope::CurrentWorkspace, confirm_close: true, |
