History

Add strikethrough support back to `Label`

Marshall Bowers committed 3 years ago

Commit ed2c8cd1 parent 19434af1 file · +11 −11Browse files

Unified · Split

crates/ui2/src/elements/label.rs+11−11
@@ -133,17 +133,17 @@ impl<S: 'static + Send + Sync + Clone> Label<S> { · 132 unmodified lines
133133
134134 div()
135135 .flex()
136− // .when(self.strikethrough, |this| {
137− // this.relative().child(
138− // div()
139− // .absolute()
140− // .top_px()
141− // .my_auto()
142− // .w_full()
143− // .h_px()
144− // .fill(LabelColor::Hidden.hsla(cx)),
145− // )
146− // })
136+ .when(self.strikethrough, |this| {
137+ this.relative().child(
138+ div()
139+ .absolute()
140+ .top_px()
141+ .my_auto()
142+ .w_full()
143+ .h_px()
144+ .fill(LabelColor::Hidden.hsla(cx)),
145+ )
146+ })
147147 .children(runs.into_iter().map(|run| {
148148 let mut div = div();
149149

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t