mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-03 06:09:19 +00:00
gh-12104: Fix notification tabs overlap (gh-12965)
Co-authored-by: mr. m <mr.m@tuta.com>
This commit is contained in:
@@ -46,14 +46,13 @@ class ZenStartup {
|
||||
}
|
||||
newContainer.appendChild(node);
|
||||
}
|
||||
|
||||
// Fix notification deck
|
||||
const deckTemplate = document.getElementById(
|
||||
"tab-notification-deck-template"
|
||||
);
|
||||
if (deckTemplate) {
|
||||
document.getElementById("zen-appcontent-wrapper").prepend(deckTemplate);
|
||||
}
|
||||
const deckTemplate =
|
||||
document.getElementById("tab-notification-deck-template") ||
|
||||
document.getElementById("tab-notification-deck");
|
||||
|
||||
// overlap and interaction issues with vertical tabs
|
||||
document.getElementById("browser").prepend(deckTemplate);
|
||||
|
||||
gZenWorkspaces.init();
|
||||
setTimeout(() => {
|
||||
|
||||
@@ -404,32 +404,6 @@
|
||||
min-width: 26px;
|
||||
}
|
||||
|
||||
/* Notification Stack */
|
||||
|
||||
.notificationbox-stack {
|
||||
background: transparent;
|
||||
|
||||
&[notificationside="top"] {
|
||||
position: fixed;
|
||||
bottom: calc(var(--zen-element-separation) * 1.5);
|
||||
right: calc(var(--zen-element-separation) * 1.5);
|
||||
width: fit-content;
|
||||
max-width: 30rem !important;
|
||||
z-index: 9999;
|
||||
|
||||
& notification-message {
|
||||
background: color-mix(in srgb, var(--zen-colors-tertiary) 70%, transparent 30%);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid var(--arrowpanel-border-color);
|
||||
border-radius: var(--zen-border-radius);
|
||||
|
||||
&::before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#nav-bar,
|
||||
#zen-sidebar-top-buttons {
|
||||
min-height: var(--zen-toolbar-height) !important;
|
||||
|
||||
@@ -650,3 +650,36 @@
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Notification Stack */
|
||||
|
||||
.notificationbox-stack {
|
||||
background: transparent;
|
||||
|
||||
&[notificationside="top"] {
|
||||
position: fixed;
|
||||
bottom: calc(var(--zen-element-separation) * 1.5);
|
||||
right: calc(var(--zen-element-separation) * 1.5);
|
||||
|
||||
:root[zen-right-side="true"] & {
|
||||
right: auto;
|
||||
left: calc(var(--zen-element-separation) * 1.5);
|
||||
}
|
||||
|
||||
width: fit-content;
|
||||
max-width: 30rem !important;
|
||||
z-index: 9999;
|
||||
|
||||
& notification-message {
|
||||
background: color-mix(in srgb, var(--zen-colors-tertiary) 70%, transparent 30%);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid var(--arrowpanel-border-color);
|
||||
border-radius: var(--zen-border-radius);
|
||||
|
||||
&::before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user