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.
This commit is contained in:
kangfenmao 2025-09-02 04:39:53 +08:00
parent e417b57123
commit cef8791c82

View File

@ -107,8 +107,7 @@ const PopupContainer: React.FC<Props> = ({
onContentChange={handleContentChange}
onMarkdownChange={handleMarkdownChange}
onCommandsReady={handleCommandsReady}
minHeight={300}
maxHeight={500}
minHeight={window.innerHeight * 0.7}
isFullWidth={true}
className="rich-edit-popup-editor"
/>