list: Avoid duplicate active item background. (#594)

This commit is contained in:
Jason Lee 2025-02-03 14:55:51 +08:00 committed by GitHub
parent 576dda344c
commit 8e931bd862
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -128,7 +128,6 @@ impl RenderOnce for ListItem {
.relative()
.items_center()
.justify_between()
.when(is_active, |this| this.bg(cx.theme().list_active))
.when(!self.disabled, |this| {
this.when_some(self.on_click, |this, on_click| {
this.cursor_pointer()