mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-29 14:38:37 +00:00
chore: Refactor Zen theme modifier and fix notification deck placement
This commit is contained in:
@@ -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();
|
||||
|
@@ -56,12 +56,6 @@
|
||||
border-radius: var(--toolbarbutton-border-radius);
|
||||
}
|
||||
|
||||
#zen-website-and-native-separator {
|
||||
background: light-dark(#ddd, #4a4a4a);
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#urlbar[focused="true"][breakout-extend="true"] {
|
||||
overflow: visible;
|
||||
}
|
||||
@@ -897,6 +891,7 @@ panelmultiview {
|
||||
|
||||
.tabbrowser-tab[pinned] {
|
||||
grid-column: span 1;
|
||||
min-width: 100%;
|
||||
}
|
||||
|
||||
#zen-workspaces-button {
|
||||
|
Reference in New Issue
Block a user