fix: responsive menu layout

This commit is contained in:
Ashley Wulber 2026-02-22 20:48:11 -05:00
parent b9ac8a2509
commit dfa7d89915
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
6 changed files with 46 additions and 14 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))