Fix outline

This commit is contained in:
2026-07-14 22:19:43 +02:00
parent 62511d2101
commit 08edc981ee
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ impl Rect {
} }
pub fn layout(rows: Vec<LayoutItem>) -> LayoutItem { pub fn layout(rows: Vec<LayoutItem>) -> LayoutItem {
LayoutItem::Rows { LayoutItem::Columns {
unit: Size::Percent(100), unit: Size::Percent(100),
items: rows, items: rows,
} }
+1 -1
View File
@@ -8,7 +8,7 @@ impl Widget for Outline {
scope.draw_text((0, 1), "|\n".repeat(scope.rect.height as usize - 2)); scope.draw_text((0, 1), "|\n".repeat(scope.rect.height as usize - 2));
scope.draw_text( scope.draw_text(
(scope.rect.width, 1), (scope.rect.width - 1, 1),
"|\n".repeat(scope.rect.height as usize - 2), "|\n".repeat(scope.rect.height as usize - 2),
); );