From dd50587a345015a2cf1f26859cdf7edc6205bf38 Mon Sep 17 00:00:00 2001 From: Xaviju Date: Thu, 10 Oct 2024 14:10:13 +0200 Subject: [PATCH] fix: allow minimize modal window --- libs/plugins-runtime/src/lib/modal/plugin-modal.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/plugins-runtime/src/lib/modal/plugin-modal.ts b/libs/plugins-runtime/src/lib/modal/plugin-modal.ts index cad1868..78784ef 100644 --- a/libs/plugins-runtime/src/lib/modal/plugin-modal.ts +++ b/libs/plugins-runtime/src/lib/modal/plugin-modal.ts @@ -61,9 +61,9 @@ export class PluginModalElement extends HTMLElement { this.#wrapper.classList.add('wrapper'); this.#wrapper.style.inlineSize = `${width}px`; - this.#wrapper.style.minInlineSize = `${width}px`; + // this.#wrapper.style.minInlineSize = `${width}px`; this.#wrapper.style.blockSize = `${height}px`; - this.#wrapper.style.minBlockSize = `${height}px`; + // this.#wrapper.style.minBlockSize = `${height}px`; this.#wrapper.style.maxInlineSize = '90vw'; this.#wrapper.style.maxBlockSize = '90vh'; @@ -99,6 +99,9 @@ export class PluginModalElement extends HTMLElement { header.appendChild(closeButton); const iframe = document.createElement('iframe'); + iframe.style.minInlineSize = `${width}px`; + iframe.style.minBlockSize = `${height}px`; + iframe.style.overflow = 'hidden'; iframe.src = iframeSrc; iframe.allow = ''; iframe.sandbox.add(