Browse Source

Fix edge case where settings/admin page sidebar would be incorrectly hidden (#17580)

closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
00b45b967e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions
  1. +1
    -7
      app/javascript/packs/public.js
  2. +4
    -0
      app/javascript/styles/mastodon/admin.scss

+ 1
- 7
app/javascript/packs/public.js View File

@ -276,13 +276,7 @@ function main() {
});
delegate(document, '.sidebar__toggle__icon', 'click', () => {
const target = document.querySelector('.sidebar ul');
if (target.style.display === 'block') {
target.style.display = 'none';
} else {
target.style.display = 'block';
}
document.querySelector('.sidebar ul').classList.toggle('visible');
});
// Empty the honeypot fields in JS in case something like an extension

+ 4
- 0
app/javascript/styles/mastodon/admin.scss View File

@ -322,6 +322,10 @@ $content-width: 840px;
& > ul {
display: none;
&.visible {
display: block;
}
}
ul a,

Loading…
Cancel
Save