Skip to content

Commit

Permalink
fix the close button to be bigger by default for card
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed Jul 25, 2023
1 parent 44f6d4c commit 76e0f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/native/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,8 @@ where

let close_size = close_size.unwrap_or_else(|| renderer.default_size());
let mut close = if on_close {
limits = limits.shrink(Size::new(close_size, 0.0));
Some(layout::Node::new(Size::new(close_size, close_size)))
limits = limits.shrink(Size::new(close_size, 1.0));
Some(layout::Node::new(Size::new(close_size, close_size + 1.0)))
} else {
None
};
Expand Down

0 comments on commit 76e0f85

Please sign in to comment.