about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-08-31 13:55:43 +0200
committerThibG <thib@sitedethib.com>2018-08-31 18:33:46 +0200
commit4686b3fa76eaa353d30073f8c23eacd1a297fcdb (patch)
tree75961cfbc3f847f73f966bf273132a80c08bde99
parent37a00d4c1dd3aa1b66f60d296fa71fa3201a32da (diff)
[Glitch] Hide search from Compose on mobile devices
Port 0893b1669548858daee79ab1260fb98646a0b3fa to glitch-soc
-rw-r--r--app/javascript/flavours/glitch/features/drawer/index.js18
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 />}