Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
7ijme committed Apr 7, 2024
1 parent e4b5698 commit 859e45a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 859e45a

Please sign in to comment.