Fix layout text width estimates and alignment for hn header
This commit is contained in:
1 parent
e3d072f0b7
commit
740caaea06
3 files changed
+58
-9
No files matched your search
@@ -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" => {
|
||||
|
||||
Reference in new issue
Block a user