From 268e6d98bfe4bdeeae758d254caed59ea0e4a820 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Thu, 16 Apr 2026 20:29:02 +0200 Subject: [PATCH] Update cell widget layout to show b_level Replace static spacing with dynamic `b_level` values for ZoomedIn and Default zoom levels, and remove redundant placeholder lines. --- src/app/widgets/cell.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/widgets/cell.rs b/src/app/widgets/cell.rs index 461e88d..dafdcbe 100644 --- a/src/app/widgets/cell.rs +++ b/src/app/widgets/cell.rs @@ -132,16 +132,16 @@ impl CellWidget { match self.zoom_level { ZoomLevel::ZoomedIn => { - text_area.push(Line::from(format!(" {} ", unit))); + text_area.push(Line::from(format!(" {} {} ", b_level, unit))); text_area.push(Line::from(format!(" "))); text_area.push(Line::from(format!(" {} ", tag))); text_area.push(Line::from(format!(" "))); - text_area.push(Line::from(format!(" {} ", b_level))); + text_area.push(Line::from(format!(" "))); } ZoomLevel::Default => { - text_area.push(Line::from(format!(" {} ", unit))); + text_area.push(Line::from(format!(" {} {} ", b_level, unit))); text_area.push(Line::from(format!(" {} ", tag))); - text_area.push(Line::from(format!(" {} ", b_level))); + text_area.push(Line::from(format!(" "))); } ZoomLevel::ZoomedOut => { text_area.push(Line::from(format!(" {} ", tag)));