Remove if-not-else patterns (#10402)
This commit is contained in:
parent
36a87d0f5c
commit
eb6f7c1240
24 changed files with 99 additions and 99 deletions
|
@ -175,10 +175,10 @@ impl MarkdownPreviewView {
|
|||
this.bg(cx.theme().colors().border)
|
||||
})
|
||||
.group_hover("markdown-block", |s| {
|
||||
if ix != view.selected_block {
|
||||
s.bg(cx.theme().colors().border_variant)
|
||||
} else {
|
||||
if ix == view.selected_block {
|
||||
s
|
||||
} else {
|
||||
s.bg(cx.theme().colors().border_variant)
|
||||
}
|
||||
})
|
||||
.rounded_sm();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue