From 1fbfddfa8ad6cc80fc4f065de2ede16667a87ed1 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 2 Nov 2018 15:29:18 +0100 Subject: [PATCH] hide search field when left panel is collapsed also remove collapse/expand button in search field --- src/components/structures/LeftPanel.js | 6 +- src/components/structures/SearchBox.js | 86 ++++++++------------------ 2 files changed, 32 insertions(+), 60 deletions(-) diff --git a/src/components/structures/LeftPanel.js b/src/components/structures/LeftPanel.js index 989644304b..da5abed41b 100644 --- a/src/components/structures/LeftPanel.js +++ b/src/components/structures/LeftPanel.js @@ -194,12 +194,16 @@ const LeftPanel = React.createClass({ }, ); + const searchBox = !this.props.collapsed ? + : + undefined; + return (
{ tagPanel }