diff --git a/shared/components/rstack-mi.ts b/shared/components/rstack-mi.ts index 0d46a8d..3be809c 100644 --- a/shared/components/rstack-mi.ts +++ b/shared/components/rstack-mi.ts @@ -221,7 +221,7 @@ export class RStackMi extends HTMLElement { input.value = ""; this.#autoResize(input); } - if (e.key === "Escape") { + if (e.key === "Escape" && !input.value.trim()) { this.#minimize(); } }); @@ -913,6 +913,7 @@ const STYLES = ` position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; resize: none; + transform: none; } } `;