chore: Refactor Zen theme modifier and fix notification deck placement

This commit is contained in:
Mauro Balades
2024-08-12 09:41:22 +02:00
parent 1a450ebc72
commit cedd505a09
2 changed files with 5 additions and 11 deletions

View File

@@ -108,7 +108,6 @@ var ZenThemeModifier = {
"nav-bar",
"PersonalToolbar"
];
const kSeparatorId = "zen-website-and-native-separator";
const kNewContainerId = "zen-appcontent-navbar-container";
let newContainer = document.getElementById(kNewContainerId);
for (let id of kNavbarItems) {
@@ -117,10 +116,10 @@ var ZenThemeModifier = {
if (!node) continue;
newContainer.appendChild(node);
}
// Add the separator
const separator = document.createElement("span");
separator.id = kSeparatorId;
newContainer.appendChild(separator);
// Fix notification deck
document.getElementById("zen-appcontent-navbar-container")
.appendChild(document.getElementById("tab-notification-deck"));
gZenVerticalTabsManager.init();
gZenCompactModeManager.init();