Skip to content

show-names - Add support for RTL names - #8194

Merged
fregante merged 8 commits into
mainfrom
show-names/rtl
Jan 15, 2025
Merged

fregante merged 8 commits into
mainfrom
show-names/rtl

Conversation

@kidonng

@kidonng kidonng commented Jan 7, 2025 •

Copy link
Copy Markdown
Member

@kidonng kidonng added the bug label Jan 7, 2025
Comment thread source/features/show-names.tsx Resolved

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Bugs and bugfixes confirmed 🙏

Comment thread source/features/show-names.tsx Outdated
for (const element of elements) {
if (isUsernameAlreadyFullName(username, fullName)) {
// Confine bidi overrides #8191
element.classList.add('d-inline-block');

@fregante fregante Jan 7, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Optionally:

  • add the offending string to the tests of isUsernameAlreadyFullName
  • change /W with a more restricted amount of characters, like [],.:;()_ –—- (dash, n-dash, m-dash) in
    .replaceAll(/\W/g, '')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Done

@fregante fregante changed the title show-names - Fix RTL text show-names - Add support for RTL names Jan 7, 2025
@fregante
fregante merged commit 5b9c5c9 into main Jan 15, 2025
@FloEdelmann
FloEdelmann deleted the show-names/rtl branch May 19, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Issue with display user Arabic name

2 participants