feat(ios): add textAlignment - #403
Conversation
|
@kacperzolkiewski Awesome feature! Would love to see it implemented. #266 (comment) |
szydlovsky
left a comment
There was a problem hiding this comment.
Overall solid, left a few comments.
I wonder if we can just make the alignment just another style? It would simplify a few things because this implementation kinda looks all over the place. Either way I'm open for discussion 😄
|
Currently, the cursor is not properly aligned on empty lines when active formatting (such as alignment or headings) is applied. Fixing this requires a refactor of the attribute application logic, so it will be addressed in a separate PR. Screen.Recording.2026-05-08.at.08.35.53.mov |
Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
….yaml Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
…extView.mm Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
Co-authored-by: Mikołaj Szydłowski <9szydlowski9@gmail.com>
# Summary We introduced a parser regression after merging #403, causing the `inline_styles_display.yaml` test to fail. When multiple inline styles are applied to the same word, the styles incorrectly extend onto the surrounding text <img width="1266" height="424" alt="image" src="https://github.com/user-attachments/assets/a50ccadf-1421-4215-b42c-1f7dd76980a0" /> Also fixes applying alignment inside input from parsed html ## Test Plan `inline_styles_display.yaml` test passes. Parsing works properly when alignment set ## Screenshots / Videos n/a ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | Android | ❌ | ## Checklist - [X] E2E tests are passing - [ ] Required E2E tests have been added (if applicable)
Summary
This PR:
Test Plan
Run example app and play with
textAlignmentwhen different styles are toggled.Check if paragraphs/lists with different
textAlignmentthanleftare properly parsed and containstyle="text-align:center|right|justify"inside HTMLScreenshots / Videos
Screen.Recording.2026-05-08.at.08.34.04.mov
Compatibility