mirror of
https://github.com/zen-browser/desktop.git
synced 2026-07-11 19:39:33 +00:00
gh-14544: Fix essentials promo ui leaving gap on pressing esc (gh-14547)
Fixes https://github.com/zen-browser/desktop/issues/14544 Also fixes essentials promo having weird ui with container specific essentials https://github.com/user-attachments/assets/f6df3e48-5fa2-471e-afbb-2472efa0620b
This commit is contained in:
@@ -460,16 +460,19 @@ class nsZenWorkspaces {
|
||||
document
|
||||
.getElementById("zen-essentials")
|
||||
.appendChild(essentialsContainer);
|
||||
|
||||
// Set an initial hidden state if the essentials section is not supposed
|
||||
// to be shown on the current workspace
|
||||
if (
|
||||
this.containerSpecificEssentials &&
|
||||
this.getActiveWorkspaceFromCache()?.containerTabId != container
|
||||
) {
|
||||
essentialsContainer.setAttribute("hidden", "true");
|
||||
}
|
||||
}
|
||||
|
||||
// Set a hidden state if the essentials section is not supposed
|
||||
// to be shown on the current workspace, else remove the hidden state
|
||||
if (
|
||||
this.containerSpecificEssentials &&
|
||||
this.getActiveWorkspaceFromCache()?.containerTabId != container
|
||||
) {
|
||||
essentialsContainer.setAttribute("hidden", "true");
|
||||
} else {
|
||||
essentialsContainer.removeAttribute("hidden");
|
||||
}
|
||||
|
||||
return essentialsContainer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user