mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +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
|
||||
}
|
||||
|
||||
ToolbarItemLocation::PrimaryRight { flex: None }
|
||||
}
|
||||
None => {
|
||||
self.active_item = None;
|
||||
|
Loading…
Reference in New Issue
Block a user