vomebook commited on
Commit
dee062f
·
1 Parent(s): 4faa556

Share the sidebar covered state with the overlay

Browse files
scripts/complexity-budget.json CHANGED
@@ -2,7 +2,7 @@
2
  "version": 1,
3
  "scope": "site",
4
  "limit": 12,
5
- "branches": 17514,
6
  "files": {
7
  "backend/app.py": {
8
  "peak": 19,
@@ -464,10 +464,6 @@
464
  "peak": 13,
465
  "excess": 1
466
  },
467
- "static/search/shell/presentation/view.js": {
468
- "peak": 14,
469
- "excess": 2
470
- },
471
  "static/search/sidebar/application/directory.js": {
472
  "peak": 13,
473
  "excess": 2
 
2
  "version": 1,
3
  "scope": "site",
4
  "limit": 12,
5
+ "branches": 17512,
6
  "files": {
7
  "backend/app.py": {
8
  "peak": 19,
 
464
  "peak": 13,
465
  "excess": 1
466
  },
 
 
 
 
467
  "static/search/sidebar/application/directory.js": {
468
  "peak": 13,
469
  "excess": 2
static/search/shell/presentation/view.js CHANGED
@@ -96,7 +96,7 @@
96
  el.rightSidebar.classList.toggle("collapsed", !state.rightSidebarOpen);
97
  el.rightSidebar.classList.toggle("open", state.rightSidebarOpen);
98
  el.overlay.style.display = "";
99
- el.overlay.classList.toggle("open", state.isMobile && (state.leftSidebarOpen || state.rightSidebarOpen));
100
  if (focusCovered) focusSearchSidebar(state.rightSidebarOpen ? el.rightSidebar : el.leftSidebar);
101
  }
102
 
 
96
  el.rightSidebar.classList.toggle("collapsed", !state.rightSidebarOpen);
97
  el.rightSidebar.classList.toggle("open", state.rightSidebarOpen);
98
  el.overlay.style.display = "";
99
+ el.overlay.classList.toggle("open", covered);
100
  if (focusCovered) focusSearchSidebar(state.rightSidebarOpen ? el.rightSidebar : el.leftSidebar);
101
  }
102