Fix layout of elements in the feedback editor's toolbar

Co-Authored-By: Kay Simmons <3323631+Kethku@users.noreply.github.com>
Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com>
This commit is contained in:
Joseph Lyons 2023-02-08 18:20:17 -05:00
parent bbe8297297
commit 83f9d51dee
3 changed files with 83 additions and 2 deletions

View file

@ -540,6 +540,8 @@ impl View for FeedbackInfoText {
.contained()
.with_style(theme.workspace.titlebar.outdated_warning.container)
.aligned()
.left()
.clipped()
.boxed()
}
}
@ -554,7 +556,9 @@ impl ToolbarItemView for FeedbackInfoText {
if let Some(feedback_editor) = active_pane_item.and_then(|i| i.downcast::<FeedbackEditor>())
{
self.active_item = Some(feedback_editor);
ToolbarItemLocation::PrimaryLeft { flex: None }
ToolbarItemLocation::PrimaryLeft {
flex: Some((1., false)),
}
} else {
self.active_item = None;
ToolbarItemLocation::Hidden