Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add strikethrough support back to `Label`
Marshall Bowersed2c8cdc2557
diff --git a/crates/ui2/src/elements/label.rs b/crates/ui2/src/elements/label.rsindex 37694e2703a..c6fc25ce87e 100644--- a/crates/ui2/src/elements/label.rs+++ b/crates/ui2/src/elements/label.rs@@ -133,17 +133,17 @@ impl<S: 'static + Send + Sync + Clone> Label<S> {div().flex()- // .when(self.strikethrough, |this| {- // this.relative().child(- // div()- // .absolute()- // .top_px()- // .my_auto()- // .w_full()- // .h_px()- // .fill(LabelColor::Hidden.hsla(cx)),- // )- // })+ .when(self.strikethrough, |this| {+ this.relative().child(+ div()+ .absolute()+ .top_px()+ .my_auto()+ .w_full()+ .h_px()+ .fill(LabelColor::Hidden.hsla(cx)),+ )+ }).children(runs.into_iter().map(|run| {let mut div = div();