fix(context_drawer): center header elements

This commit is contained in:
Vukašin Vojinović 2024-11-08 12:26:03 +01:00 committed by Michael Murphy
parent 2704a77aa3
commit 707f2115eb
4 changed files with 9 additions and 10 deletions

View file

@ -286,7 +286,7 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
};
// Creates the headerbar widget.
let mut widget = widget::row::with_capacity(4)
let mut widget = widget::row::with_capacity(3)
// If elements exist in the start region, append them here.
.push(
widget::row::with_children(start)
@ -351,8 +351,7 @@ impl<'a, Message: Clone + 'static> HeaderBar<'a, Message> {
widget::text::heading(title)
.apply(widget::container)
.center_x(Length::Fill)
.center_y(Length::Fill)
.center(Length::Fill)
.into()
}