Skip to content

Commit

Permalink
fix: popup width growth on click
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Aug 7, 2024
1 parent a48e264 commit c102287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}
Expand Down

0 comments on commit c102287

Please sign in to comment.