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:
parent
b7aadf66cd
commit
a415d6c308
|
|
@ -221,7 +221,7 @@ export class RStackMi extends HTMLElement {
|
||||||
input.value = "";
|
input.value = "";
|
||||||
this.#autoResize(input);
|
this.#autoResize(input);
|
||||||
}
|
}
|
||||||
if (e.key === "Escape") {
|
if (e.key === "Escape" && !input.value.trim()) {
|
||||||
this.#minimize();
|
this.#minimize();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -913,6 +913,7 @@ const STYLES = `
|
||||||
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
|
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
|
||||||
width: 100%; max-width: 100%; height: 100%; max-height: 100%;
|
width: 100%; max-width: 100%; height: 100%; max-height: 100%;
|
||||||
border-radius: 0; resize: none;
|
border-radius: 0; resize: none;
|
||||||
|
transform: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue