1
mirror of https://github.com/jakejarvis/mastodon-utils.git synced 2025-06-27 15:05:43 -04:00

glitch restore sidebar logo

This commit is contained in:
2022-12-09 12:01:50 -05:00
parent f4bc67a91e
commit 04593eea12
2 changed files with 2 additions and 27 deletions

View File

@ -31,7 +31,7 @@ systemctl restart mastodon-*
- [Additional `glitch-soc` patch](patches/glitch/hide-rules.patch)
- [`hide-signup.patch`](patches/hide-signup.patch): Hide the "create account" button (for aesthetics, **not security!**)
- [Additional `glitch-soc` patch](patches/glitch/hide-signup.patch)
- [`glitch-soc` only] [`cleanup-sidebar.patch`](patches/glitch/cleanup-sidebar.patch): Removes redudant search button from sidebar
- [`glitch-soc` only] [`sidebar-logo.patch`](patches/glitch/sidebar-logo.patch): Restore Mastodon logo in logged-out sidebar
## License

View File

@ -1,5 +1,5 @@
diff --git a/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js b/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js
index 3b46c6eec..4999c273c 100644
index 3b46c6eec..f2465482f 100644
--- a/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js
+++ b/app/javascript/flavours/glitch/features/ui/components/navigation_panel.js
@@ -2,6 +2,7 @@ import React from 'react';
@ -22,28 +22,3 @@ index 3b46c6eec..4999c273c 100644
{signedIn && (
<React.Fragment>
<ColumnLink transparent to='/home' icon='home' text={intl.formatMessage(messages.home)} />
@@ -55,14 +61,13 @@ class NavigationPanel extends React.Component {
</React.Fragment>
)}
- {showTrends ? (
+ {showTrends && (
<ColumnLink transparent to='/explore' icon='hashtag' text={intl.formatMessage(messages.explore)} />
- ) : (
- <ColumnLink transparent to='/search' icon='search' text={intl.formatMessage(messages.search)} />
)}
{(signedIn || timelinePreview) && (
<>
+ <ColumnLink transparent to='/search' icon='search' text={intl.formatMessage(messages.search)} />
<ColumnLink transparent to='/public/local' icon='users' text={intl.formatMessage(messages.local)} />
<ColumnLink transparent exact to='/public' icon='globe' text={intl.formatMessage(messages.federated)} />
</>
@@ -70,7 +75,6 @@ class NavigationPanel extends React.Component {
{!signedIn && (
<div className='navigation-panel__sign-in-banner'>
- <hr />
{ disabledAccountId ? <DisabledAccountBanner /> : <SignInBanner /> }
</div>
)}