fix: hamburger menu only placing 1 line

This commit is contained in:
sethburkart123
2024-06-09 19:58:18 +10:00
parent be75ca7ee0
commit 6a67e0b171
2 changed files with 3 additions and 19 deletions
-16
View File
@@ -486,22 +486,6 @@ function SortMessagePageItems(messagesParentElement: any) {
)[0].firstChild as HTMLElement
header.append(filterbutton)
messagesParentElement
/* const observer = new MutationObserver(function (mutations_list) {
mutations_list.forEach(function (mutation) {
mutation.addedNodes.forEach(function (added_node) {
const node = added_node as HTMLElement
if (node.dataset.message) {
// Check if added_node.firstChild.title is in block list
}
})
})
})
observer.observe(messagesParentElement, {
subtree: true,
childList: true,
}); */
}
async function LoadPageElements(): Promise<void> {
+3 -3
View File
@@ -274,10 +274,10 @@ function customizeMenuToggle() {
menuToggle.innerHTML = '';
}
const line = document.createElement('div');
line.className = 'hamburger-line';
for (let i = 0; i < 3; i++) {
const line = document.createElement('div');
line.className = 'hamburger-line';
menuToggle!.appendChild(line);
}
}