0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-04 13:50:13 -05:00

fix: allow minimize modal window

This commit is contained in:
Xaviju 2024-10-10 14:10:13 +02:00
parent b4d0463548
commit dd50587a34

View file

@ -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(