From a415d6c30893f6e4a8116fdb8b0c82e95609d7b5 Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sat, 21 Mar 2026 16:25:06 -0700 Subject: [PATCH] fix(mi): only minimize on Escape when input empty, fix mobile transform Co-Authored-By: Claude Opus 4.6 --- shared/components/rstack-mi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } `;