1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-30 07:49:04 +09:00

[Glitch] Hide search from Compose on mobile devices

Port 0893b16695 to glitch-soc
This commit is contained in:
Thibaut Girka 2018-08-31 13:55:43 +02:00 committed by ThibG
parent 37a00d4c1d
commit 4686b3fa76

View File

@ -100,7 +100,7 @@ class Drawer extends React.Component {
onSettingsClick={onOpenSettings} onSettingsClick={onOpenSettings}
/> />
) : null} ) : null}
<DrawerSearch {(multiColumn || isSearchPage) && <DrawerSearch
intl={intl} intl={intl}
onChange={onChange} onChange={onChange}
onClear={onClear} onClear={onClear}
@ -108,7 +108,7 @@ class Drawer extends React.Component {
onSubmit={onSubmit} onSubmit={onSubmit}
submitted={submitted} submitted={submitted}
value={searchValue} value={searchValue}
/> /> }
<div className='contents'> <div className='contents'>
<DrawerAccount account={account} /> <DrawerAccount account={account} />
{!isSearchPage && <Composer />} {!isSearchPage && <Composer />}