diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 03:59:52 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 04:00:33 +0300 |
| commit | f54d8e8c0aee5d3ec9724234d1bcd418bff8ff2f (patch) | |
| tree | 67eb7fd76f668feab4b5a4ef245eea854a04d42d /src/ui | |
| parent | 5e2dc40691e30f90c5fe3b1e60d5074ceb358556 (diff) | |
feat: add hidden collapsed sidebar mode
refs #842
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/sidebar.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/sidebar.rs b/src/ui/sidebar.rs index a7b0ca92..72b344fb 100644 --- a/src/ui/sidebar.rs +++ b/src/ui/sidebar.rs @@ -636,6 +636,10 @@ pub(crate) fn collapsed_sidebar_sections(area: Rect) -> (Rect, Option<u16>, Rect /// Collapsed sidebar: workspace glance on top, compact agent list below. pub(super) fn render_sidebar_collapsed(app: &AppState, frame: &mut Frame, area: Rect) { + if area.width == 0 || area.height == 0 { + return; + } + let is_navigating = matches!(app.mode, Mode::Navigate); let p = &app.palette; |
