Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Redesign: set default size of 350px for left panel #2479

Merged
merged 1 commit into from
Jan 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/components/structures/LoggedInView.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,13 @@ const LoggedInView = React.createClass({
},

_loadResizerPreferences() {
const lhsSize = window.localStorage.getItem("mx_lhs_size");
let lhsSize = window.localStorage.getItem("mx_lhs_size");
if (lhsSize !== null) {
this.resizer.forHandleAt(0).resize(parseInt(lhsSize, 10));
lhsSize = parseInt(lhsSize, 10);
} else {
lhsSize = 350;
}
this.resizer.forHandleAt(0).resize(lhsSize);
},

onAccountData: function(event) {
Expand Down