@@ -19,6 +19,7 @@ limitations under the License.
1919import React from 'react' ;
2020import { DragDropContext } from 'react-dnd' ;
2121import HTML5Backend from 'react-dnd-html5-backend' ;
22+ import classNames from 'classnames' ;
2223import KeyCode from 'matrix-react-sdk/lib/KeyCode' ;
2324import sdk from 'matrix-react-sdk' ;
2425import dis from 'matrix-react-sdk/lib/dispatcher' ;
@@ -55,7 +56,7 @@ var LeftPanel = React.createClass({
5556 // We just need to update if any of these things change.
5657 if (
5758 this . props . collapsed !== nextProps . collapsed ||
58- this . props . opacity !== nextProps . opacity
59+ this . props . disabled !== nextProps . disabled
5960 ) {
6061 return true ;
6162 }
@@ -176,14 +177,16 @@ var LeftPanel = React.createClass({
176177 topBox = < SearchBox collapsed = { this . props . collapsed } onSearch = { this . onSearch } /> ;
177178 }
178179
179- let classes = "mx_LeftPanel mx_fadable" ;
180- if ( this . props . collapsed ) {
181- classes += " collapsed" ;
182- }
180+ let classes = classNames (
181+ "mx_LeftPanel" , "mx_fadable" ,
182+ {
183+ "collapsed" : this . props . collapsed ,
184+ "mx_fadable_faded" : this . props . disabled ,
185+ }
186+ ) ;
183187
184188 return (
185- < aside className = { classes } style = { { opacity : this . props . opacity } }
186- onKeyDown = { this . _onKeyDown } onFocus = { this . _onFocus } onBlur = { this . _onBlur } >
189+ < aside className = { classes } onKeyDown = { this . _onKeyDown } onFocus = { this . _onFocus } onBlur = { this . _onBlur } >
187190 { topBox }
188191 < CallPreview ConferenceHandler = { VectorConferenceHandler } />
189192 < RoomList
0 commit comments