Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): align session texts to the text direction in RTL
Yudhi Armyndharis7dc2cbc5130f
diff --git a/dashboard/src/pages/Sessions.css b/dashboard/src/pages/Sessions.cssindex 195654b67..b50854ea9 100644--- a/dashboard/src/pages/Sessions.css+++ b/dashboard/src/pages/Sessions.css@@ -159,7 +159,7 @@color: var(--error-text);font-weight: 500;max-width: 60%;- text-align: right;+ text-align: end;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;@@ -172,7 +172,7 @@color: var(--warning-text);font-weight: 500;max-width: 60%;- text-align: right;+ text-align: end;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;@@ -597,7 +597,7 @@.sessions-page .qr-instructions {margin-top: 1.5rem;- text-align: left;+ text-align: start;background: var(--bg-light);border-radius: 12px;padding: 1rem 1.25rem;diff --git a/dashboard/src/pages/Sessions.test.ts b/dashboard/src/pages/Sessions.test.tsindex c3c0ed724..9e65363fb 100644--- a/dashboard/src/pages/Sessions.test.ts+++ b/dashboard/src/pages/Sessions.test.ts@@ -14,6 +14,7 @@import '../test-helpers/register-hooks.ts';import { test, before, afterEach } from 'node:test';import assert from 'node:assert/strict';+import { readFileSync } from 'node:fs';import { createElement } from 'react';import { QueryClient, QueryClientProvider } from '@tanstack/react-query';import type { Session } from '../services/api';@@ -1984,3 +1985,10 @@ for (const [label, cardButton, confirmButton, method, path] of [assert.equal(fetchCalls.filter(c => c.method === method && c.path === path).length, 1);});}++// Hebrew and Arabic mirror the page: left-aligned pairing instructions read backwards, and a value+// aligned right sits on the start side of its row instead of against the end.+test('Sessions.css aligns text to the text direction, not a physical side', () => {+ const css = readFileSync(new URL('./Sessions.css', import.meta.url), 'utf8').replace(/\/\*[\s\S]*?\*\//g, '');+ assert.doesNotMatch(css, /text-align\s*:\s*(left|right)\b/, 'text is aligned to a physical side');+});