diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-31 13:55:43 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-08-31 18:33:46 +0200 |
commit | 4686b3fa76eaa353d30073f8c23eacd1a297fcdb (patch) | |
tree | 75961cfbc3f847f73f966bf273132a80c08bde99 /app | |
parent | 37a00d4c1dd3aa1b66f60d296fa71fa3201a32da (diff) |
[Glitch] Hide search from Compose on mobile devices
Port 0893b1669548858daee79ab1260fb98646a0b3fa to glitch-soc
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/features/drawer/index.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/javascript/flavours/glitch/features/drawer/index.js b/app/javascript/flavours/glitch/features/drawer/index.js index eb051ba42..226d342fb 100644 --- a/app/javascript/flavours/glitch/features/drawer/index.js +++ b/app/javascript/flavours/glitch/features/drawer/index.js @@ -100,15 +100,15 @@ class Drawer extends React.Component { onSettingsClick={onOpenSettings} /> ) : null} - <DrawerSearch - intl={intl} - onChange={onChange} - onClear={onClear} - onShow={onShow} - onSubmit={onSubmit} - submitted={submitted} - value={searchValue} - /> + {(multiColumn || isSearchPage) && <DrawerSearch + intl={intl} + onChange={onChange} + onClear={onClear} + onShow={onShow} + onSubmit={onSubmit} + submitted={submitted} + value={searchValue} + /> } <div className='contents'> <DrawerAccount account={account} /> {!isSearchPage && <Composer />} |