Limit notification width equalization to two-column rows

This commit is contained in:
2026-06-01 17:17:16 +02:00
parent 0762aec772
commit acc584d6e7
+6
View File
@@ -502,6 +502,12 @@
return; return;
} }
// Enforce equalized multi-row widths only for 2-column rows.
// For 3+ columns, keep native min/max card behavior.
if (firstRowCards.length !== 2) {
return;
}
const referenceWidth = referenceCard.getBoundingClientRect().width; const referenceWidth = referenceCard.getBoundingClientRect().width;
grid.style.setProperty('--layout-object-card-shared-width', `${referenceWidth}px`); grid.style.setProperty('--layout-object-card-shared-width', `${referenceWidth}px`);
grid.classList.add('sg-notifications-pattern--multi-row'); grid.classList.add('sg-notifications-pattern--multi-row');