From cef8791c8216404bec46857a89ce84ba0c1398db Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Tue, 2 Sep 2025 04:39:53 +0800 Subject: [PATCH] refactor(RichEditPopup): update minHeight to be dynamic based on window size - Changed minHeight from a fixed value to a dynamic calculation using window.innerHeight for improved responsiveness. --- src/renderer/src/components/Popups/RichEditPopup.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/src/components/Popups/RichEditPopup.tsx b/src/renderer/src/components/Popups/RichEditPopup.tsx index 09ddbe1191..ed7c3d407c 100644 --- a/src/renderer/src/components/Popups/RichEditPopup.tsx +++ b/src/renderer/src/components/Popups/RichEditPopup.tsx @@ -107,8 +107,7 @@ const PopupContainer: React.FC = ({ onContentChange={handleContentChange} onMarkdownChange={handleMarkdownChange} onCommandsReady={handleCommandsReady} - minHeight={300} - maxHeight={500} + minHeight={window.innerHeight * 0.7} isFullWidth={true} className="rich-edit-popup-editor" />