Align Meldungen notification structure and logic with notifications pattern

This commit is contained in:
2026-06-01 17:18:39 +02:00
parent acc584d6e7
commit 12f16b9813
+2 -12
View File
@@ -148,8 +148,7 @@
<div class="sg-content-block-card-group__panels">
<div class="sg-content-block-card-group__panel" id="vsf-meldungen-panel-updates" role="tabpanel" aria-labelledby="vsf-meldungen-tab-updates">
<div class="sg-preview-area sg-notifications-pattern" aria-label="Updates Meldungen">
<div class="sg-group-card" data-component="group-card">
<div class="sg-preview-area sg-notifications-pattern sg-group-card" aria-label="Updates Meldungen" data-component="group-card">
<article class="sg-card sg-notifications-pattern__card" data-pattern="notification" data-component="notification-card">
<div class="sg-card-segment sg-card-segment--header sg-card-segment--signal-red sg-notifications-pattern__text-segment" data-component-part="card-header">
<p class="sg-body">Update-Hinweis mit hoher Priorität zur Illustration.</p>
@@ -205,11 +204,9 @@
</article>
</div>
</div>
</div>
<div class="sg-content-block-card-group__panel" id="vsf-meldungen-panel-termine" role="tabpanel" aria-labelledby="vsf-meldungen-tab-termine" hidden>
<div class="sg-preview-area sg-notifications-pattern" aria-label="Termine Meldungen">
<div class="sg-group-card" data-component="group-card">
<div class="sg-preview-area sg-notifications-pattern sg-group-card" aria-label="Termine Meldungen" data-component="group-card">
<article class="sg-card sg-notifications-pattern__card" data-pattern="notification" data-component="notification-card">
<div class="sg-card-segment sg-card-segment--header sg-card-segment--signal-red sg-notifications-pattern__text-segment" data-component-part="card-header">
<p class="sg-body">Terminwarnung mit hoher Priorität zur Illustration.</p>
@@ -240,7 +237,6 @@
</div>
</div>
</div>
</div>
</article>
@@ -502,12 +498,6 @@
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');