Change logo version in header based on screen size in web UI (#24707)
This commit is contained in:
parent
2b0f1f365a
commit
6028d047b9
3 changed files with 29 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import Logo from 'mastodon/components/logo';
|
||||
import { WordmarkLogo, SymbolLogo } from 'mastodon/components/logo';
|
||||
import { Link, withRouter } from 'react-router-dom';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { registrationsOpen, me } from 'mastodon/initial_state';
|
||||
|
@ -73,7 +73,10 @@ class Header extends React.PureComponent {
|
|||
|
||||
return (
|
||||
<div className='ui__header'>
|
||||
<Link to='/' className='ui__header__logo'><Logo /></Link>
|
||||
<Link to='/' className='ui__header__logo'>
|
||||
<WordmarkLogo />
|
||||
<SymbolLogo />
|
||||
</Link>
|
||||
|
||||
<div className='ui__header__links'>
|
||||
{content}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue