Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

fix(dashboard): align group members to the start edge in RTL

Yudhi Armyndharis1a40b27d01d6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index aee7e4e8c..e17b753b9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Announce the unread badges on dashboard chat list rows to screen readers, including the dot of a chat marked as unread.
- Keep the reply, react and delete actions of dashboard chat messages visible beside each bubble on touch screens, which have no hover to reveal them.
- Fit the dashboard chat room's menu to the room's height, scrolling its entries, so a short window no longer cuts off the last ones.
+- Keep a member's name and number at the start edge of the dashboard group dialog in right-to-left languages, where a Latin name and every number sat at the left.
## [0.26.0] - 2026-10-28
diff --git a/dashboard/src/bidi.test.ts b/dashboard/src/bidi.test.ts
index a09d5482e..33c25f965 100644
--- a/dashboard/src/bidi.test.ts
+++ b/dashboard/src/bidi.test.ts
@@ -81,6 +81,7 @@ test('cut text that a flex column stretches hugs the start edge, where its sibli
'.chats-page .preview-filename',
'.chats-page .replying-to-body',
'.chats-page .session-name',
+ '.chats-page .group-info-member .name',
];
for (const selector of hugging) {
const rule = body('pages/Chats.css', selector);
@@ -93,6 +94,15 @@ test('cut text that a flex column stretches hugs the start edge, where its sibli
assert.match(quote, /max-width:\s*min\(\d+px,\s*100%\)/);
});
+test("a group member's number hugs the start edge, where the name above it is", () => {
+ // Isolated left to right, the number takes start as left: stretched across the column it sat at the left edge of an
+ // Arabic page.
+ const dialog = readFileSync(join(SRC, 'components/chats/GroupInfoDialog.tsx'), 'utf8');
+ assert.match(dialog, /<bdi className="number" dir="ltr">/);
+ assert.match(body('pages/Chats.css', '.chats-page .group-info-member'), /flex-direction:\s*column/);
+ assert.match(body('pages/Chats.css', '.chats-page .group-info-member .number'), /align-self:\s*flex-start/);
+});
+
test('a message body takes its direction from its own characters', () => {
// Under the page direction an English question in an Arabic page drew its question mark at the left.
assert.match(body('pages/Chats.css', '.chats-page .message-content > .message-text'), /unicode-bidi:\s*plaintext/);
diff --git a/dashboard/src/pages/Chats.css b/dashboard/src/pages/Chats.css
index 4af91deef..d1a4c2ae2 100644
--- a/dashboard/src/pages/Chats.css
+++ b/dashboard/src/pages/Chats.css
@@ -1432,6 +1432,9 @@
flex: 1;
}
+/* The name and the number hug the start edge, as a chat name does (see .chat-item-name): stretched across the column,
+ a Latin name (by its own direction) and the number (isolated left to right) sat at the left edge of an Arabic
+ page, away from the avatar and the names beside them. */
.chats-page .group-info-member .name {
font-weight: 500;
color: var(--text-primary);
@@ -1439,11 +1442,14 @@
text-overflow: ellipsis;
white-space: nowrap;
unicode-bidi: plaintext;
+ align-self: flex-start;
+ max-width: 100%;
}
.chats-page .group-info-member .number {
font-size: 0.8125rem;
color: var(--chat-meta);
+ align-self: flex-start;
}
.chats-page .group-info-role {