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:
parent
31aa0bd3df
commit
e568122083
3 changed files with 7 additions and 7 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue