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.
This commit is contained in:
2026-04-16 20:29:02 +02:00
parent 0f60249309
commit 268e6d98bf
+4 -4
View File
@@ -132,16 +132,16 @@ impl CellWidget {
match self.zoom_level { match self.zoom_level {
ZoomLevel::ZoomedIn => { 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!(" ")));
text_area.push(Line::from(format!(" {} ", tag))); text_area.push(Line::from(format!(" {} ", tag)));
text_area.push(Line::from(format!(" "))); text_area.push(Line::from(format!(" ")));
text_area.push(Line::from(format!(" {} ", b_level))); text_area.push(Line::from(format!(" ")));
} }
ZoomLevel::Default => { 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!(" {} ", tag)));
text_area.push(Line::from(format!(" {} ", b_level))); text_area.push(Line::from(format!(" ")));
} }
ZoomLevel::ZoomedOut => { ZoomLevel::ZoomedOut => {
text_area.push(Line::from(format!(" {} ", tag))); text_area.push(Line::from(format!(" {} ", tag)));