ui: Update Label component (#24653)
- Standardize style methods - Convert label story to a component preview - update component preview styles Release Notes: - N/A
This commit is contained in:
parent
aab3e0495d
commit
2d71733490
27 changed files with 182 additions and 151 deletions
|
@ -1657,9 +1657,7 @@ impl GitPanel {
|
|||
if !parent_str.is_empty() {
|
||||
this.child(
|
||||
self.entry_label(format!("{}/", parent_str), path_color)
|
||||
.when(status.is_deleted(), |this| {
|
||||
this.strikethrough(true)
|
||||
}),
|
||||
.when(status.is_deleted(), |this| this.strikethrough()),
|
||||
)
|
||||
} else {
|
||||
this
|
||||
|
@ -1667,7 +1665,7 @@ impl GitPanel {
|
|||
})
|
||||
.child(
|
||||
self.entry_label(display_name.clone(), label_color)
|
||||
.when(status.is_deleted(), |this| this.strikethrough(true)),
|
||||
.when(status.is_deleted(), |this| this.strikethrough()),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue