Merge pull request #491 from git-f0x/master

Make header button height fixed
This commit is contained in:
Jeremy Soller 2024-09-24 09:20:24 -06:00 committed by GitHub
commit b05e2d0d06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -3251,6 +3251,7 @@ impl Application for App {
} else {
elements.push(
widget::button::icon(widget::icon::from_name("system-search-symbolic"))
.padding(8)
.on_press(Message::SearchActivate)
.into(),
)

View file

@ -283,7 +283,8 @@ pub fn dialog_menu<'a>(
widget::button::icon(widget::icon::from_name(match tab.config.view {
tab::View::Grid => "view-grid-symbolic",
tab::View::List => "view-list-symbolic",
})),
}))
.padding(8),
menu::items(
key_binds,
vec![
@ -305,7 +306,8 @@ pub fn dialog_menu<'a>(
"view-sort-ascending-symbolic"
} else {
"view-sort-descending-symbolic"
})),
}))
.padding(8),
menu::items(
key_binds,
vec![