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",
|
"nav-bar",
|
||||||
"PersonalToolbar"
|
"PersonalToolbar"
|
||||||
];
|
];
|
||||||
const kSeparatorId = "zen-website-and-native-separator";
|
|
||||||
const kNewContainerId = "zen-appcontent-navbar-container";
|
const kNewContainerId = "zen-appcontent-navbar-container";
|
||||||
let newContainer = document.getElementById(kNewContainerId);
|
let newContainer = document.getElementById(kNewContainerId);
|
||||||
for (let id of kNavbarItems) {
|
for (let id of kNavbarItems) {
|
||||||
@@ -117,10 +116,10 @@ var ZenThemeModifier = {
|
|||||||
if (!node) continue;
|
if (!node) continue;
|
||||||
newContainer.appendChild(node);
|
newContainer.appendChild(node);
|
||||||
}
|
}
|
||||||
// Add the separator
|
|
||||||
const separator = document.createElement("span");
|
// Fix notification deck
|
||||||
separator.id = kSeparatorId;
|
document.getElementById("zen-appcontent-navbar-container")
|
||||||
newContainer.appendChild(separator);
|
.appendChild(document.getElementById("tab-notification-deck"));
|
||||||
|
|
||||||
gZenVerticalTabsManager.init();
|
gZenVerticalTabsManager.init();
|
||||||
gZenCompactModeManager.init();
|
gZenCompactModeManager.init();
|
||||||
|
@@ -56,12 +56,6 @@
|
|||||||
border-radius: var(--toolbarbutton-border-radius);
|
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"] {
|
#urlbar[focused="true"][breakout-extend="true"] {
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
@@ -897,6 +891,7 @@ panelmultiview {
|
|||||||
|
|
||||||
.tabbrowser-tab[pinned] {
|
.tabbrowser-tab[pinned] {
|
||||||
grid-column: span 1;
|
grid-column: span 1;
|
||||||
|
min-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zen-workspaces-button {
|
#zen-workspaces-button {
|
||||||
|
Reference in New Issue
Block a user