You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
set default size of 350px for left panel
This commit is contained in:
@ -183,10 +183,13 @@ const LoggedInView = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_loadResizerPreferences() {
|
_loadResizerPreferences() {
|
||||||
const lhsSize = window.localStorage.getItem("mx_lhs_size");
|
let lhsSize = window.localStorage.getItem("mx_lhs_size");
|
||||||
if (lhsSize !== null) {
|
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) {
|
onAccountData: function(event) {
|
||||||
|
Reference in New Issue
Block a user