From b985de53894b7c194e1e07cbbc01ed4f6367f63c Mon Sep 17 00:00:00 2001 From: Mira Date: Fri, 15 Mar 2024 10:26:55 +0100 Subject: [PATCH] fixed CSS selector commerce-frame section and fragment --- libs/blocks/modal/modal.css | 2 +- libs/blocks/modal/modal.merch.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/blocks/modal/modal.css b/libs/blocks/modal/modal.css index ecd7e3414f1..e34c3e7df0d 100644 --- a/libs/blocks/modal/modal.css +++ b/libs/blocks/modal/modal.css @@ -221,7 +221,7 @@ } .dialog-modal.commerce-frame > .fragment, - .dialog-modal.commerce-frame > .section { + .dialog-modal.commerce-frame > .fragment > .section { height: 100%; } diff --git a/libs/blocks/modal/modal.merch.js b/libs/blocks/modal/modal.merch.js index a49c1de1a6d..73370194bea 100644 --- a/libs/blocks/modal/modal.merch.js +++ b/libs/blocks/modal/modal.merch.js @@ -60,7 +60,7 @@ export function adjustStyles({ dialog, iframe }) { if (isAutoHeightAdjustment) { dialog.classList.add('height-fit-content'); } else { - iframe.style.height = '100vh'; + iframe.style.height = '100%'; } }