Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spacing issue with mentions inside RTL text #4677

Merged
merged 3 commits into from
Jun 10, 2023

Conversation

mohad12211
Copy link
Contributor

Treat elements with usernames (mentions) as neutral elements

Before PR:
image
After PR:
image
Spacing issue is solved.
Also fixes the comma "," so that it's to the left of the mention (should be the case since text should be read from RTL)
The change is only in the function reoderRTL so LTR only text shouldn't be affected at all since reoderRTL is only called when RTL is detected.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

src/messages/layouts/MessageLayoutContainer.cpp Outdated Show resolved Hide resolved
Also store a reference to the element
@pajlada pajlada changed the title Fix spacing issue with mentions inside RTL text. Fix spacing issue with mentions inside RTL text Jun 10, 2023
@pajlada pajlada enabled auto-merge (squash) June 10, 2023 13:01
@pajlada pajlada merged commit c907f2b into Chatterino:master Jun 10, 2023
14 checks passed
@mohad12211 mohad12211 deleted the fix-rtl-username branch June 10, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants