Skip to content

Commit

Permalink
Update view.js (#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Sep 10, 2024
1 parent 97c7960 commit c5868fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -2457,14 +2457,14 @@ view.Sidebar = class {
content.innerHTML = '';
content.appendChild(entry.element);
}
if (entry.content && entry.content.activate) {
entry.content.activate();
}
sidebar.style.width = 'min(calc(100% * 0.6), 42em)';
sidebar.style.right = 0;
sidebar.style.opacity = 1;
this._host.document.addEventListener('keydown', this._closeSidebarKeyDownHandler);
container.style.width = 'max(40vw, calc(100vw - 42em))';
if (entry.content && entry.content.activate) {
entry.content.activate();
}
} else {
sidebar.style.right = 'calc(0px - min(calc(100% * 0.6), 42em))';
sidebar.style.opacity = 0;
Expand Down

0 comments on commit c5868fe

Please sign in to comment.