mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-30 15:59:09 +08:00
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:
parent
e417b57123
commit
cef8791c82
@ -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"
|
||||
/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user