Merge pull request #6845 from opf/fix/set-max-width-for-main-menu

[28960] Max width for main menu
pull/6838/head
Henriette Dinger 6 years ago committed by GitHub
commit 15d8f3d637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      frontend/src/app/components/resizer/main-menu-toggle.service.ts

@ -144,6 +144,13 @@ export class MainMenuToggleService {
}
public saveWidth(width?:number):void {
// Leave a minimum amount of space for space fot the content
let maxMenuWidth = window.innerWidth - 520;
if (width != undefined && width > maxMenuWidth) {
width = maxMenuWidth;
}
this.setWidth(width);
window.OpenProject.guardedLocalStorage(this.localStorageKey, String(this.elementWidth));
this.setToggleTitle();

Loading…
Cancel
Save