Sync styleguide 2026.05.18.1
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user