Skip to content

Commit bd15a88

Browse files
author
Luke Barnard
committed
Use CSS to stop greyed Right/LeftPanel UI from being interactable
1 parent 858e1fa commit bd15a88

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎src/components/structures/LeftPanel.js‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,15 @@ var LeftPanel = React.createClass({
182182
}
183183

184184
return (
185-
<aside className={classes} style={{ opacity: this.props.opacity }}
186-
onKeyDown={ this._onKeyDown } onFocus={ this._onFocus } onBlur={ this._onBlur }>
185+
<aside className={classes}
186+
style={{
187+
opacity: this.props.opacity,
188+
pointerEvents: this.props.opacity < 1.0 ? 'none' : undefined,
189+
}}
190+
onKeyDown={ this._onKeyDown }
191+
onFocus={ this._onFocus }
192+
onBlur={ this._onBlur }
193+
>
187194
{ topBox }
188195
<CallPreview ConferenceHandler={VectorConferenceHandler} />
189196
<RoomList

‎src/components/structures/RightPanel.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,12 @@ module.exports = React.createClass({
351351
}
352352

353353
return (
354-
<aside className={classes} style={{ opacity: this.props.opacity }}>
354+
<aside className={classes}
355+
style={{
356+
opacity: this.props.opacity,
357+
pointerEvents: this.props.opacity < 1.0 ? 'none' : undefined,
358+
}}
359+
>
355360
<div className="mx_RightPanel_header">
356361
<div className="mx_RightPanel_headerButtonGroup">
357362
{headerButtons}

0 commit comments

Comments
 (0)