From c584037c77c63f6a08f8837f357c89432b8043e7 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 20 May 2026 22:08:04 +0300 Subject: feat: badge outdated integration updates --- src/app/input/sidebar.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/app/input/sidebar.rs') diff --git a/src/app/input/sidebar.rs b/src/app/input/sidebar.rs index 94feaf93..7491c9c1 100644 --- a/src/app/input/sidebar.rs +++ b/src/app/input/sidebar.rs @@ -175,7 +175,7 @@ impl AppState { } let footer = self.sidebar_footer_rect(); - let width = if self.update_available.is_some() { + let width = if self.global_menu_attention_badge_visible() { 8 } else { 6 @@ -203,8 +203,12 @@ impl AppState { let content_width = labels .iter() .map(|label| { - let extra = if *label == "update ready" { 2 } else { 0 }; - label.chars().count() as u16 + extra + let badge_width = if self.global_menu_item_has_badge(label) { + 2 + } else { + 0 + }; + label.chars().count() as u16 + badge_width }) .max() .unwrap_or(8) -- cgit v1.2.3