From 869b97d091efe52baca4635a17bf3c25bbf3b2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KMY=EF=BC=88=E9=9B=AA=E3=81=82=E3=81=99=E3=81=8B=EF=BC=89?= Date: Thu, 28 Mar 2024 08:58:35 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20#657=20=E3=82=A2=E3=83=B3=E3=83=86?= =?UTF-8?q?=E3=83=8A=E3=80=81=E3=82=B5=E3=83=BC=E3=82=AF=E3=83=AB=E3=81=AE?= =?UTF-8?q?=E8=A9=B3=E7=B4=B0=E8=A8=AD=E5=AE=9A=E3=83=9A=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=81=AE=E3=83=87=E3=82=B6=E3=82=A4=E3=83=B3=E5=B4=A9=E3=82=8C?= =?UTF-8?q?=20(#679)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../features/antenna_setting/index.jsx | 113 ++++++++++-------- .../features/antenna_timeline/index.jsx | 16 +-- .../features/circle_statuses/index.jsx | 16 +-- 3 files changed, 82 insertions(+), 63 deletions(-) diff --git a/app/javascript/mastodon/features/antenna_setting/index.jsx b/app/javascript/mastodon/features/antenna_setting/index.jsx index 2bcf6f0e31..99aa4e2aba 100644 --- a/app/javascript/mastodon/features/antenna_setting/index.jsx +++ b/app/javascript/mastodon/features/antenna_setting/index.jsx @@ -329,19 +329,23 @@ class AntennaSetting extends PureComponent { if (!isStl && !isLtl) { columnSettings = ( <> -
- - -
+
+
+ + +
+
-
- - -
+
+
+ + +
+
); } @@ -379,6 +383,9 @@ class AntennaSetting extends PureComponent { return { value: list[1].get('id'), label: list[1].get('title') }; }); + const isShowStlToggle = !isLtl && (enableLocalTimeline || isStl); + const isShowLtlToggle = !isStl && (enableLocalTimeline || isLtl); + return ( -
- +
+
+ - + - + +
+ + {isShowStlToggle && ( +
+
+ + +
+
+ )} + + {isShowLtlToggle && ( +
+
+ + +
+
+ )} + +
+
+ + +
+
+ + {columnSettings}
- - {!isLtl && (enableLocalTimeline || isStl) && ( -
- - -
- )} - - {!isStl && (enableLocalTimeline || isLtl) && ( -
- - -
- )} - -
- - -
- - {columnSettings} {stlAlert} diff --git a/app/javascript/mastodon/features/antenna_timeline/index.jsx b/app/javascript/mastodon/features/antenna_timeline/index.jsx index 02234b1381..26b21ff679 100644 --- a/app/javascript/mastodon/features/antenna_timeline/index.jsx +++ b/app/javascript/mastodon/features/antenna_timeline/index.jsx @@ -171,14 +171,16 @@ class AntennaTimeline extends PureComponent { pinned={pinned} multiColumn={multiColumn} > -
- +
+
+ - + +
diff --git a/app/javascript/mastodon/features/circle_statuses/index.jsx b/app/javascript/mastodon/features/circle_statuses/index.jsx index ac1abd91dc..51cb964343 100644 --- a/app/javascript/mastodon/features/circle_statuses/index.jsx +++ b/app/javascript/mastodon/features/circle_statuses/index.jsx @@ -152,14 +152,16 @@ class CircleStatuses extends ImmutablePureComponent { pinned={pinned} multiColumn={multiColumn} > -
- +
+
+ - + +