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| {
|
.when_some(checked, |this, checked| {
|
||||||
// Checkmark
|
// Todo list checkbox
|
||||||
this.child(
|
this.child(
|
||||||
div()
|
div()
|
||||||
.flex()
|
.flex()
|
||||||
|
|
@ -443,10 +443,11 @@ impl Node {
|
||||||
.items_center()
|
.items_center()
|
||||||
.justify_center()
|
.justify_center()
|
||||||
.rounded(cx.theme().radius.half())
|
.rounded(cx.theme().radius.half())
|
||||||
.bg(cx.theme().primary)
|
.border_1()
|
||||||
|
.border_color(cx.theme().primary)
|
||||||
.text_color(cx.theme().primary_foreground)
|
.text_color(cx.theme().primary_foreground)
|
||||||
.when(checked, |this| {
|
.when(checked, |this| {
|
||||||
this.child(
|
this.bg(cx.theme().primary).child(
|
||||||
Icon::new(IconName::Check)
|
Icon::new(IconName::Check)
|
||||||
.size_2()
|
.size_2()
|
||||||
.text_xs(),
|
.text_xs(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue