Simplify rendering to css-only

This commit is contained in:
Dariusz Niemczyk 2021-08-24 14:38:39 +02:00
parent 0746fab09d
commit a93d5cde09
No known key found for this signature in database
GPG key ID: 3E8DC619E3C59A05
2 changed files with 7 additions and 8 deletions

View file

@ -686,10 +686,7 @@ class LoggedInView extends React.Component<IProps, IState> {
<div
className="mx_LeftPanel_wrapper--user"
ref={this._resizeContainer}
style={{
maxWidth: this.props.collapseLhs ? getComputedStyle(document.documentElement)
.getPropertyValue('--room-list-collapsed-width') : undefined,
}}
data-collapsed={this.props.collapseLhs ? true : undefined}
>
<LeftPanel
isMinimized={this.props.collapseLhs || false}