fix: Fixed too many addons overflowing the screen, b=closes #10918, c=common

This commit is contained in:
mr. m
2025-10-22 08:58:28 +02:00
parent 5b6f39ab90
commit 3774a856cf
2 changed files with 16 additions and 0 deletions

View File

@@ -302,6 +302,12 @@ body > #confetti {
gap: 8px;
overflow: visible;
&[overflowing='true'] {
overflow-x: auto;
max-height: 420px;
mask-image: linear-gradient(to top, transparent, black 5%);
}
.unified-extensions-item-name,
.unified-extensions-item-message,
.unified-extensions-item-message-hover,

View File

@@ -127,6 +127,16 @@ export class nsZenSiteDataPanel {
this.#setSitePermissions();
this.#setSiteSecurityInfo();
this.#setSiteHeader();
this.#setAddonsOverflow();
}
#setAddonsOverflow() {
const addons = this.document.getElementById('zen-site-data-addons');
if (addons.getBoundingClientRect().height > 420) {
addons.setAttribute('overflowing', 'true');
} else {
addons.removeAttribute('overflowing');
}
}
#setSiteHeader() {