Skip to content

Commit

Permalink
Merge pull request #361 from sarub0b0/adjust-popup-width
Browse files Browse the repository at this point in the history
feat(ui/popup): Adjust popup width/hight to 90% of the container
  • Loading branch information
sarub0b0 committed Jun 30, 2023
2 parents 390b3f1 + 727e0b5 commit 06b2c03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ui/popup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ pub struct PopupChunkSize {
impl Default for PopupChunkSize {
fn default() -> Self {
Self {
margin_left: Constraint::Percentage(10),
margin_right: Constraint::Percentage(10),
margin_top: Constraint::Percentage(10),
margin_bottom: Constraint::Percentage(10),
content_width: Constraint::Percentage(80),
content_height: Constraint::Percentage(80),
margin_left: Constraint::Percentage(5),
margin_right: Constraint::Percentage(5),
margin_top: Constraint::Percentage(5),
margin_bottom: Constraint::Percentage(5),
content_width: Constraint::Percentage(90),
content_height: Constraint::Percentage(90),
}
}
}
Expand Down

0 comments on commit 06b2c03

Please sign in to comment.