fix(comment-input): restore min-height to prevent buttons floating to top

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing
2026-03-31 18:42:52 +08:00
parent 4c3d9ed1a1
commit 475c6d378f

View File

@@ -41,8 +41,8 @@ function CommentInput({ issueId, onSubmit }: CommentInputProps) {
};
return (
<div className="relative flex max-h-56 flex-col rounded-lg bg-card pb-8 ring-1 ring-border">
<div className="flex-1 min-h-0 overflow-y-auto px-3 py-2">
<div className="relative rounded-lg bg-card ring-1 ring-border">
<div className="min-h-20 max-h-48 overflow-y-auto px-3 py-2 pb-8">
<RichTextEditor
ref={editorRef}
placeholder="Leave a comment..."