fix(quick-capture): prevent window height expansion during text input

The quick capture window was continuously growing in height as users typed,
caused by the autoResizeTextarea function resizing both the textarea and
the window itself. Now only the textarea resizes within fixed window bounds.
This commit is contained in:
Quorafind 2025-09-05 09:26:31 +08:00
parent 723d555a47
commit f4c0ebcde1

View file

@ -926,11 +926,8 @@ export class ElectronQuickCapture {
const newHeight = Math.min(textarea.scrollHeight, 300);
textarea.style.height = newHeight + 'px';
// Resize the window if needed
if (window.resizeTo) {
const windowHeight = document.body.scrollHeight + 40;
window.resizeTo(500, Math.min(windowHeight, 800));
}
// Don't resize the window - let the container handle overflow
// The window size should remain stable
}
// Initialize