Sync styleguide 2026.05.18.1

This commit is contained in:
2026-06-16 10:53:21 +02:00
parent a9be216565
commit 593dbe72c3
5 changed files with 32 additions and 11 deletions
@@ -221,6 +221,11 @@
);
let draftListIds = new Set(committedListIds);
let resetAddToListDraftState = () => {};
const updateFloatingCardHeight = (dialog) => {
const stageHeight = stage.getBoundingClientRect().height;
const floatingCardHeight = Math.max(0, Math.round(stageHeight * 0.9));
dialog.style.setProperty('--layout-delete-confirmation-overlay-height', `${floatingCardHeight}px`);
};
const closeStageDialogs = ({ resetAddToListDraft = false } = {}) => {
stage.querySelectorAll('[data-overlay-dialog]').forEach((dialog) => {
@@ -382,6 +387,7 @@
closeStageDialogs({ resetAddToListDraft: target === 'add-to-list' });
dialog.hidden = false;
updateFloatingCardHeight(dialog);
stage.dataset.dialogOpen = 'true';
const menuWrap = link.closest('.sg-sandwich-menu-wrap');