You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Merge pull request #2369 from matrix-org/bwindels/rhsdefaultsize
Redesign: give right panel default width
This commit is contained in:
		@@ -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;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user