From c1022877e18c452ec821a7e3c17a8cb5e0ca433e Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Wed, 7 Aug 2024 09:19:05 +0800 Subject: [PATCH] fix: popup width growth on click --- src/modules/popup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/popup.ts b/src/modules/popup.ts index 613449f4..99c00b7f 100644 --- a/src/modules/popup.ts +++ b/src/modules/popup.ts @@ -209,7 +209,7 @@ export function buildReaderPopup( const textarea = popup.querySelector( `#${makeId("text")}`, ) as HTMLTextAreaElement; - const outerWidth = 10; + const outerWidth = 18; if (popup.scrollWidth > textarea.offsetWidth + outerWidth) { textarea.style.width = `${popup.scrollWidth - outerWidth}px`; }