From 83a9b2564c298e58f3be7c92a13aba10b0c83e1d Mon Sep 17 00:00:00 2001 From: Kingsword Date: Tue, 17 Jun 2025 08:46:24 +0800 Subject: [PATCH] fix(PromptPopup): Textarea overflow causes modal's close button unclickable (#7266) fix(PromptPopup): Textarea overflow causes modal's close button unclickable. --- src/renderer/src/components/Popups/PromptPopup.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderer/src/components/Popups/PromptPopup.tsx b/src/renderer/src/components/Popups/PromptPopup.tsx index 603304c00c..9d8b9ae752 100644 --- a/src/renderer/src/components/Popups/PromptPopup.tsx +++ b/src/renderer/src/components/Popups/PromptPopup.tsx @@ -72,6 +72,11 @@ const PromptPopupContainer: React.FC = ({ placeholder={inputPlaceholder} value={value} onChange={(e) => setValue(e.target.value)} + styles={{ + textarea: { + maxHeight: '80vh' + } + }} allowClear onKeyDown={(e) => { const isEnterPressed = e.keyCode === 13