summaryrefslogtreecommitdiffstats
path: root/webapp/components/sidebar_right.jsx
diff options
context:
space:
mode:
authorkhawerrind <khawer.zeshan@gmail.com>2016-12-22 22:21:16 +0500
committerenahum <nahumhbl@gmail.com>2016-12-22 14:21:16 -0300
commitc9eb23a3d44c96042522bf7cdefc65903eb1d0a3 (patch)
tree604f6b626503ee007efd4d46063f66280ed4754b /webapp/components/sidebar_right.jsx
parenta857cf18f4809ab5fbff4956b42430e5eeddb54e (diff)
downloadchat-c9eb23a3d44c96042522bf7cdefc65903eb1d0a3.tar.gz
chat-c9eb23a3d44c96042522bf7cdefc65903eb1d0a3.tar.bz2
chat-c9eb23a3d44c96042522bf7cdefc65903eb1d0a3.zip
PLT-3782 Do not move the "@" sign and flag icon to the left of search bar when opening the right hand sidebar (#4850)
* do not move the mention & flag button to the left of the search box when in search mode * fixed the margin & padding issues of the search box * fixed the member icon positioning issue and the expanded sidebar toggle issue * fixed remaining bugs when sidebar is in expanded mode * changed propTypes from func to bool
Diffstat (limited to 'webapp/components/sidebar_right.jsx')
-rw-r--r--webapp/components/sidebar_right.jsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/components/sidebar_right.jsx b/webapp/components/sidebar_right.jsx
index 1be2a3287..da7ff818d 100644
--- a/webapp/components/sidebar_right.jsx
+++ b/webapp/components/sidebar_right.jsx
@@ -74,6 +74,12 @@ export default class SidebarRight extends React.Component {
if (isOpen !== willOpen) {
PostStore.jumpPostsViewSidebarOpen();
}
+
+ if (!isOpen && willOpen) {
+ this.setState({
+ expanded: false
+ });
+ }
}
doStrangeThings() {
@@ -191,6 +197,10 @@ export default class SidebarRight extends React.Component {
);
}
+ if (!content) {
+ expandedClass = '';
+ }
+
return (
<div
className={'sidebar--right ' + expandedClass}