From 0792df1adb31978ba272f0e87f53b8aa444831a6 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 24 Aug 2023 09:12:00 +0800 Subject: [PATCH] dir=auto all the things --- src/components/compose.jsx | 2 ++ src/components/list-add-edit.jsx | 1 + src/pages/search.jsx | 1 + 3 files changed, 4 insertions(+) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index 9e6597ce..73eb715f 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -854,6 +854,7 @@ function Compose({ class="spoiler-text-field" lang={language} spellCheck="true" + dir="auto" style={{ opacity: sensitive ? 1 : 0, pointerEvents: sensitive ? 'auto' : 'none', @@ -1579,6 +1580,7 @@ function Poll({ placeholder={`Choice ${i + 1}`} lang={lang} spellCheck="true" + dir="auto" onInput={(e) => { const { value } = e.target; options[i] = value; diff --git a/src/components/list-add-edit.jsx b/src/components/list-add-edit.jsx index bb2b282b..d5a76338 100644 --- a/src/components/list-add-edit.jsx +++ b/src/components/list-add-edit.jsx @@ -95,6 +95,7 @@ function ListAddEdit({ list, onClose }) { name="title" required disabled={uiState === 'loading'} + dir="auto" /> diff --git a/src/pages/search.jsx b/src/pages/search.jsx index af37208c..96c269d9 100644 --- a/src/pages/search.jsx +++ b/src/pages/search.jsx @@ -402,6 +402,7 @@ const SearchForm = forwardRef((props, ref) => { type="search" // autofocus placeholder="Search" + dir="auto" onSearch={(e) => { if (!e.target.value) { setSearchParams({});