From 26284e89f68d66d9cab7562ff69b91b051aea1d4 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Mon, 8 Dec 2025 15:30:24 +0000 Subject: [PATCH] web: add more RTL fixes For #450. --- css/base.css | 8 ++++++++ css/modal.css | 2 +- html/admin.html | 8 ++++---- ts/modules/accounts.ts | 6 +++--- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/css/base.css b/css/base.css index fe1421e..bfa701b 100644 --- a/css/base.css +++ b/css/base.css @@ -279,6 +279,10 @@ table.table-p-0 th, table.table-p-0 td { padding-bottom: 0 !important; } +td:dir(rtl), th:dir(rtl) { + text-align: right; +} + p.top { margin-top: 0px; } @@ -479,3 +483,7 @@ section.section:not(.\~neutral) { .gap-2 > .button.inside-input { margin-left: calc(var(--inside-input-base) - 2.0*var(--tailwind-spacing)); } + +.force-ltr { + direction: ltr !important; +} diff --git a/css/modal.css b/css/modal.css index 11a0e27..a958251 100644 --- a/css/modal.css +++ b/css/modal.css @@ -29,7 +29,7 @@ html:not(.dark) .wall { } .modal-close { - float: right; + float: inline-end; color: #aaa; font-weight: normal; } diff --git a/html/admin.html b/html/admin.html index 0fefeee..6abf586 100644 --- a/html/admin.html +++ b/html/admin.html @@ -65,13 +65,13 @@ discord

Available under the MIT License. Font "Hanken Grotesk" available under SIL OFL 1.1 License.

-
{{ .license }}
+
{{ .license }}
-
+
-
+
diff --git a/ts/modules/accounts.ts b/ts/modules/accounts.ts index 8cc7022..2825e4a 100644 --- a/ts/modules/accounts.ts +++ b/ts/modules/accounts.ts @@ -316,7 +316,7 @@ class user implements User, SearchableItem {