fix(context_drawer): title alignment

Something caused text alignment to break, so this gets around it by wrapping the text in a container.
This commit is contained in:
Vukašin Vojinović 2025-09-11 16:37:42 +02:00 committed by Ashley Wulber
parent 31aa0bd3df
commit e568122083
3 changed files with 7 additions and 7 deletions

View file

@ -61,8 +61,8 @@ impl<'a, Message: Clone + 'static> ContextDrawer<'a, Message> {
let title = title.map(|title| {
text::heading(title)
.width(Length::FillPortion(title_portion))
.center()
.apply(container)
.center_x(Length::FillPortion(title_portion))
});
let (actions_width, close_width) = if title.is_some() {