[Glitch] Do not display the navigation banner in the logo container

Port 126cd7705d to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
lolsob-rspec
Renaud Chaput 2023-10-19 19:36:08 +02:00 committed by Claire
parent cc000c8859
commit 5d9df170cf
2 changed files with 13 additions and 12 deletions

View File

@ -53,20 +53,20 @@ class NavigationPanel extends Component {
const { intl, onOpenSettings } = this.props; const { intl, onOpenSettings } = this.props;
const { signedIn, disabledAccountId } = this.context.identity; const { signedIn, disabledAccountId } = this.context.identity;
return ( let banner = undefined;
<div className='navigation-panel'>
{transientSingleColumn && ( if(transientSingleColumn)
<div className='navigation-panel__logo'> banner = (<div className='switch-to-advanced'>
<div className='switch-to-advanced'>
{intl.formatMessage(messages.openedInClassicInterface)} {intl.formatMessage(messages.openedInClassicInterface)}
{" "} {" "}
<a href={`/deck${location.pathname}`} className='switch-to-advanced__toggle'> <a href={`/deck${location.pathname}`} className='switch-to-advanced__toggle'>
{intl.formatMessage(messages.advancedInterface)} {intl.formatMessage(messages.advancedInterface)}
</a> </a>
</div> </div>);
<hr />
</div> return (
)} <div className='navigation-panel'>
{banner}
{signedIn && ( {signedIn && (
<> <>

View File

@ -273,6 +273,7 @@
.navigation-panel__sign-in-banner, .navigation-panel__sign-in-banner,
.navigation-panel__logo, .navigation-panel__logo,
.navigation-panel__banner,
.getting-started__trends { .getting-started__trends {
display: none; display: none;
} }