Fix profile panel not being able to be closed due to hidden sidebar (#1220)

This commit is contained in:
toasted-nutbread 2021-01-10 16:06:00 -05:00 committed by GitHub
parent b1ce650aa7
commit 1614335bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -389,7 +389,8 @@ a {
}
.content-sidebar[hidden][data-has-navigation-previous=true],
.content-sidebar[hidden][data-has-navigation-next=true],
:root[data-popup-action-bar-visibility=always] .content-sidebar {
:root[data-popup-action-bar-visibility=always] .content-sidebar,
:root[data-profile-panel-visible=true] .content-sidebar {
display: block;
}
.content-sidebar-inner {

View File

@ -59,6 +59,7 @@ class DisplayProfileSelection {
_setProfilePanelVisible(visible) {
this._profilePanel.setVisible(visible);
this._profileButton.classList.toggle('sidebar-button-highlight', visible);
document.documentElement.dataset.profilePanelVisible = `${visible}`;
if (visible && this._profileListNeedsUpdate) {
this._updateProfileList();
}