Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
checkbox: Fix showing cursor pointer for edge of the checkbox when it's disabled (#43577)
Remco Smits20b584398e61
diff --git a/crates/ui/src/components/toggle.rs b/crates/ui/src/components/toggle.rsindex a41dce6c61d..1e637f24194 100644--- a/crates/ui/src/components/toggle.rs+++ b/crates/ui/src/components/toggle.rs@@ -247,7 +247,13 @@ impl RenderOnce for Checkbox {h_flex().id(self.id)- .cursor_pointer()+ .map(|this| {+ if self.disabled {+ this.cursor_not_allowed()+ } else {+ this.cursor_pointer()+ }+ }).gap(DynamicSpacing::Base06.rems(cx)).child(checkbox).when_some(