fix(mi): only minimize on Escape when input empty, fix mobile transform

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-21 16:25:06 -07:00
parent b7aadf66cd
commit a415d6c308
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}
`;