Limit notification width equalization to two-column rows
This commit is contained in:
@@ -502,6 +502,12 @@
|
||||
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;
|
||||
grid.style.setProperty('--layout-object-card-shared-width', `${referenceWidth}px`);
|
||||
grid.classList.add('sg-notifications-pattern--multi-row');
|
||||
|
||||
Reference in New Issue
Block a user