mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-09 23:16:50 +02:00
994 B
994 B
TODO
Known Issues
RTL Support in Rich Text
Priority: Medium
File: src/components/nostr/RichText/Text.tsx
Current RTL implementation is partial and has limitations:
- RTL text direction works (
dirattribute on spans) - RTL text alignment (right-align) doesn't work properly with inline elements
- Mixed LTR/RTL content with inline elements (hashtags, mentions) creates layout conflicts
The core problem:
- Inline elements (hashtags, mentions) need inline flow to stay on same line
- RTL alignment requires block-level containers
- These two requirements conflict
Potential solutions to explore:
- Line-aware rendering at RichText component level (parse and group by lines)
- CSS-based approach with unicode-bidi and direction properties
- Separate rendering paths for pure RTL content vs mixed content
- Accept partial RTL support and document limitations
Test case: Arabic text with hashtags on same line should display properly with right-alignment.