Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

context menu: Use `invisible()` to hide the check icon (#24562)

Danilo Leald292b7c96dbc
diff --git a/crates/ui/src/components/context_menu.rs b/crates/ui/src/components/context_menu.rs
index 6d8e0a86784..b827a576673 100644
--- a/crates/ui/src/components/context_menu.rs
+++ b/crates/ui/src/components/context_menu.rs
@@ -681,7 +681,7 @@ impl Render for ContextMenu {
div().flex_none().child(
Icon::new(IconName::Check)
.size(*icon_size)
- ).opacity(0.)
+ ).invisible()
};
match position {
IconPosition::Start => {