fix: responsive menu layout
This commit is contained in:
parent
0d37dc69e3
commit
71e2c7c99e
5 changed files with 45 additions and 13 deletions
|
|
@ -234,6 +234,7 @@ impl Context {
|
|||
})
|
||||
.width(Length::Fixed(suggested.0 as f32))
|
||||
.height(Length::Fixed(suggested.1 as f32));
|
||||
dbg!(suggested);
|
||||
self.button_from_element(icon, symbolic)
|
||||
}
|
||||
|
||||
|
|
@ -250,6 +251,7 @@ impl Context {
|
|||
(applet_padding_minor_axis, applet_padding_major_axis)
|
||||
};
|
||||
|
||||
dbg!(suggested.0 + 2 * horizontal_padding);
|
||||
crate::widget::button::custom(layer_container(content).center(Length::Fill))
|
||||
.width(Length::Fixed((suggested.0 + 2 * horizontal_padding) as f32))
|
||||
.height(Length::Fixed((suggested.1 + 2 * vertical_padding) as f32))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue