1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-27 04:21:52 +03:00

give right panel default width of 350px

This commit is contained in:
Bruno Windels
2018-12-18 17:12:32 +01:00
parent 0676c1b8ad
commit fd5ad56886

View File

@ -41,10 +41,13 @@ export default class MainSplit extends React.Component {
{onResized: this._onResized}, {onResized: this._onResized},
); );
resizer.setClassNames(classNames); resizer.setClassNames(classNames);
const rhsSize = window.localStorage.getItem("mx_rhs_size"); let rhsSize = window.localStorage.getItem("mx_rhs_size");
if (rhsSize !== null) { if (rhsSize !== null) {
resizer.forHandleAt(0).resize(parseInt(rhsSize, 10)); rhsSize = parseInt(rhsSize, 10);
} else {
rhsSize = 350;
} }
resizer.forHandleAt(0).resize(rhsSize);
resizer.attach(); resizer.attach();
this.resizer = resizer; this.resizer = resizer;