mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 17:43:20 +03:00
Don't add a quick actions toolbar item for non-editor views
Rather than adding primary toolbar item that renders as empty, don't add an item at all. This prevents spurious spacing from being added after other primary toolbar items.
This commit is contained in:
parent
9521f6da42
commit
bb448b91d5
@ -152,9 +152,10 @@ impl ToolbarItemView for QuickActionBar {
|
||||
cx.notify();
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
ToolbarItemLocation::PrimaryRight { flex: None }
|
||||
} else {
|
||||
ToolbarItemLocation::Hidden
|
||||
}
|
||||
}
|
||||
None => {
|
||||
self.active_item = None;
|
||||
|
Loading…
Reference in New Issue
Block a user