Fix layout text width estimates and alignment for hn header

This commit is contained in:
SGavrl committed 2026-07-02 22:12:03 +00:00
1 parent e3d072f0b7
commit 740caaea06
3 files changed
+58 -9

No files matched your search

+2
View File
@@ -114,8 +114,10 @@ fn apply_value(style: &mut LayoutStyle, name: &str, value: &str) {
"text-align" => {
if value == "right" {
style.justify_content = Some(taffy::JustifyContent::FlexEnd);
style.align_items = Some(taffy::AlignItems::FlexEnd);
} else if value == "center" {
style.justify_content = Some(taffy::JustifyContent::Center);
style.align_items = Some(taffy::AlignItems::Center);
}
},
"align-items" => {