markdown: Fix Todo list item checkbox style. (#962)
<img width="394" alt="image" src="https://github.com/user-attachments/assets/dee22c50-4110-46e3-9205-320809c2ef00" />
This commit is contained in:
parent
d2633faf82
commit
60bebaf51f
1 changed files with 4 additions and 3 deletions
|
|
@ -433,7 +433,7 @@ impl Node {
|
|||
))
|
||||
})
|
||||
.when_some(checked, |this, checked| {
|
||||
// Checkmark
|
||||
// Todo list checkbox
|
||||
this.child(
|
||||
div()
|
||||
.flex()
|
||||
|
|
@ -443,10 +443,11 @@ impl Node {
|
|||
.items_center()
|
||||
.justify_center()
|
||||
.rounded(cx.theme().radius.half())
|
||||
.bg(cx.theme().primary)
|
||||
.border_1()
|
||||
.border_color(cx.theme().primary)
|
||||
.text_color(cx.theme().primary_foreground)
|
||||
.when(checked, |this| {
|
||||
this.child(
|
||||
this.bg(cx.theme().primary).child(
|
||||
Icon::new(IconName::Check)
|
||||
.size_2()
|
||||
.text_xs(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue