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:
parent
b4d0463548
commit
dd50587a34
1 changed files with 5 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue