fix: responsive menu layout

This commit is contained in:
Ashley Wulber 2026-02-22 20:48:11 -05:00
parent 0d37dc69e3
commit 71e2c7c99e
5 changed files with 45 additions and 13 deletions

View file

@ -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))