Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
fix(dashboard): draw template column dividers in RTL locales
Yudhi Armyndharisaa49bd5abd7e
diff --git a/dashboard/src/pages/Templates.css b/dashboard/src/pages/Templates.cssindex 2e7b79bcd..6882a38f0 100644--- a/dashboard/src/pages/Templates.css+++ b/dashboard/src/pages/Templates.css@@ -42,7 +42,7 @@.templates-page .templates-library {display: flex;flex-direction: column;- border-right: 1px solid var(--border);+ border-inline-end: 1px solid var(--border);background: var(--bg-light);}@@ -157,7 +157,7 @@border-radius: 8px;background: transparent;color: inherit;- text-align: left;+ text-align: start;}.templates-page .template-list-item:hover {@@ -285,7 +285,7 @@.templates-page .template-preview {display: flex;flex-direction: column;- border-left: 1px solid var(--border);+ border-inline-start: 1px solid var(--border);background: var(--bg-light);}@@ -425,7 +425,7 @@display: grid;grid-template-columns: 1fr 320px;border-top: 1px solid var(--border);- border-left: 0;+ border-inline-start: 0;}.templates-page .template-preview-header {@@ -455,7 +455,7 @@.templates-page .templates-library {max-height: 360px;- border-right: 0;+ border-inline-end: 0;border-bottom: 1px solid var(--border);}diff --git a/dashboard/src/pages/Templates.test.ts b/dashboard/src/pages/Templates.test.tsindex 4c56803d4..ff36a64e5 100644--- a/dashboard/src/pages/Templates.test.ts+++ b/dashboard/src/pages/Templates.test.ts@@ -227,3 +227,11 @@ test('a search with no match says so instead of reporting an empty library', asyawait screen.findByText('No templates match your search.');assert.equal(screen.queryByText('No templates saved') === null, true);});++// Hebrew and Arabic flip the three-column grid. A physical left or right edge then lands on the+// workspace's outer border instead of between the columns, and left-aligned text reads backwards.+test('the workspace columns and list rows follow the text direction', () => {+ const css = readFileSync(new URL('./Templates.css', import.meta.url), 'utf8').replace(/\/\*[\s\S]*?\*\//g, '');+ assert.doesNotMatch(css, /border-(left|right)\s*:/, 'a column divider uses a physical side');+ assert.doesNotMatch(css, /text-align\s*:\s*(left|right)\b/, 'text is aligned to a physical side');+});