Limit notification width equalization to two-column rows
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user