Skip to content

Commit

Permalink
Use Parley's new Left and Right alignment options (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfdewith authored Feb 18, 2025
1 parent 33d11fc commit 69c9593
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/blitz-dom/src/layout/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ impl BaseDocument {

match s.clone_text_align() {
TextAlignKeyword::Start => Alignment::Start,
TextAlignKeyword::Left => Alignment::Start,
TextAlignKeyword::Right => Alignment::End,
TextAlignKeyword::Left => Alignment::Left,
TextAlignKeyword::Right => Alignment::Right,
TextAlignKeyword::Center => Alignment::Middle,
TextAlignKeyword::Justify => Alignment::Justified,
TextAlignKeyword::End => Alignment::End,
TextAlignKeyword::MozCenter => Alignment::Middle,
TextAlignKeyword::MozLeft => Alignment::Start,
TextAlignKeyword::MozRight => Alignment::End,
TextAlignKeyword::MozLeft => Alignment::Left,
TextAlignKeyword::MozRight => Alignment::Right,
}
})
.unwrap_or(parley::layout::Alignment::Start);
Expand Down

0 comments on commit 69c9593

Please sign in to comment.