From 859e45a9af07bf0a1b3c7f1d8792cb201f140d3f Mon Sep 17 00:00:00 2001 From: Tijme Date: Sun, 7 Apr 2024 12:58:32 +0200 Subject: [PATCH] bug fix --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0b1bf2d..1969198 100644 --- a/src/main.rs +++ b/src/main.rs @@ -193,7 +193,7 @@ impl Widget for &App { if self.game_over { let text = Text::from(vec![Line::from("Game Over".red().bold())]); let new_area = area.clone().inner(&Margin { - horizontal: area.width, + horizontal: area.width / 4, vertical: (area.height - 3) / 2, }); // create padding around the cards_drawn @@ -215,7 +215,7 @@ impl Widget for &App { let cards = cards.join(" "); let text = Text::from(vec![Line::from(cards)]); let new_area = area.clone().inner(&Margin { - horizontal: area.width, + horizontal: area.width / 4, vertical: (area.height - 3) / 2, }); // create padding around the cards