From f54d8e8c0aee5d3ec9724234d1bcd418bff8ff2f Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 30 Jun 2026 03:59:52 +0300 Subject: feat: add hidden collapsed sidebar mode refs #842 --- src/ui/sidebar.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui') 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, 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; -- cgit v1.2.3