From 072540946ef6b10a2ad53f84d96051a03a90e04b Mon Sep 17 00:00:00 2001 From: KMY Date: Thu, 25 May 2023 20:00:19 +0900 Subject: [PATCH] Reorder sidebar menu --- .../ui/components/navigation_panel.jsx | 57 ++++++++++++------- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/app/javascript/mastodon/features/ui/components/navigation_panel.jsx b/app/javascript/mastodon/features/ui/components/navigation_panel.jsx index b62d216ae9..c136223c7f 100644 --- a/app/javascript/mastodon/features/ui/components/navigation_panel.jsx +++ b/app/javascript/mastodon/features/ui/components/navigation_panel.jsx @@ -43,6 +43,12 @@ class NavigationPanel extends React.Component { const { intl } = this.props; const { signedIn, disabledAccountId } = this.context.identity; + const explorer = (showTrends ? ( + + ) : ( + + )); + return (
@@ -53,16 +59,10 @@ class NavigationPanel extends React.Component { {signedIn && ( - } text={intl.formatMessage(messages.notifications)} /> - )} - {showTrends ? ( - - ) : ( - - )} + {!signedIn && explorer} {(signedIn || timelinePreview) && ( <> @@ -71,6 +71,34 @@ class NavigationPanel extends React.Component { )} + {signedIn && ( + + +
+
+ )} + + {signedIn && ( + + } text={intl.formatMessage(messages.notifications)} /> + + + + )} + + {signedIn && explorer} + + {signedIn && ( + + + + +
+ + +
+ )} + {!signedIn && (

@@ -78,21 +106,6 @@ class NavigationPanel extends React.Component {
)} - {signedIn && ( - - - - - - - - -
- - -
- )} -