Center task checkboxes vertically in markdown widget

This commit is contained in:
Héctor Ramón Jiménez 2025-11-29 13:22:47 +01:00
parent 6c271541b0
commit e27b8cba8e
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -1346,7 +1346,13 @@ where
.into()
}
Bullet::Task { done, .. } => {
Element::from(checkbox(*done).size(settings.text_size))
Element::from(
container(checkbox(*done).size(settings.text_size))
.center_y(
text::LineHeight::default()
.to_absolute(settings.text_size),
),
)
}
},
view_with(