fix theme picker again

This commit is contained in:
Cory LaViska
2021-08-17 09:14:38 -04:00
parent 185bc30893
commit 5f33bd312e
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
position: fixed;
top: 1rem;
right: 1rem;
z-index: 30;
}
.theme-picker:not(:defined) {

View File

@@ -53,7 +53,7 @@
<sl-menu-item value="auto">Auto</sl-menu-item>
</sl-menu>
`;
document.querySelector('.content').prepend(dropdown);
document.querySelector('.sidebar-toggle').insertAdjacentElement('afterend', dropdown);
// Listen for selections
const menu = dropdown.querySelector('sl-menu');