Tighten vertical spacing in toolbar dropdown menus
Beffroi/beffroi-tools/pipeline/head This commit looks good
Details
Beffroi/beffroi-tools/pipeline/head This commit looks good
Details
This commit is contained in:
parent
0cc2738238
commit
d10530d80c
|
|
@ -2338,6 +2338,11 @@ fn toolbar_menu<R>(
|
|||
}
|
||||
let response = ui.menu_button(title, |ui| {
|
||||
ui.set_style(original.clone());
|
||||
// The toolbar's 34 px hit targets should not inflate dropdown rows.
|
||||
let spacing = ui.spacing_mut();
|
||||
spacing.interact_size.y = 22.0;
|
||||
spacing.button_padding.y = 2.0;
|
||||
spacing.item_spacing.y = 4.0;
|
||||
contents(ui)
|
||||
});
|
||||
ui.set_style(original);
|
||||
|
|
|
|||
Loading…
Reference in New Issue