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: Adjust toggleable entry label alignment (#24549)

Danilo Leald15a61a1aa81
diff --git a/crates/ui/src/components/context_menu.rs b/crates/ui/src/components/context_menu.rs
index fe00c733f05..6d8e0a86784 100644
--- a/crates/ui/src/components/context_menu.rs
+++ b/crates/ui/src/components/context_menu.rs
@@ -672,15 +672,16 @@ impl Render for ContextMenu {
*toggle,
|list_item, (position, toggled)| {
let contents = if toggled {
- v_flex().flex_none().child(
+ div().flex_none().child(
Icon::new(IconName::Check)
.color(Color::Accent)
.size(*icon_size)
)
} else {
- v_flex().flex_none().size(
- IconSize::default().rems(),
- )
+ div().flex_none().child(
+ Icon::new(IconName::Check)
+ .size(*icon_size)
+ ).opacity(0.)
};
match position {
IconPosition::Start => {