no-bug: Make sure to flush the document styles when showing essentials promo (gh-12908)

This commit is contained in:
mr. m
2026-03-24 23:49:38 +01:00
committed by GitHub
parent 5493ab7c87
commit fb00df5d73
2 changed files with 4 additions and 1 deletions

View File

@@ -84,7 +84,8 @@
max-height: 16px;
}
#appMenu-translate-button {
#appMenu-translate-button,
#translations-button-icon {
list-style-image: url("translations.svg") !important;
}

View File

@@ -61,6 +61,8 @@ export function createZenEssentialsPromo(container = undefined) {
const element = document.createXULElement(TAG_NAME);
section.appendChild(element);
section.essentialsPromo = element;
// Trigger re-calculation of pinned height to avoid any flickering
void section.offsetHeight;
updatePinnedHeight();
return "created";
}