fix(ui): add max-height limit to commit message textarea

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-09 18:48:27 +08:00
parent 98691c1d9e
commit 56cd207801

View File

@@ -1196,7 +1196,7 @@ export function CommitWorkspace({
placeholder={t("commitMessagePlaceholder")} placeholder={t("commitMessagePlaceholder")}
defaultValue="" defaultValue=""
onChange={handleMessageChange} onChange={handleMessageChange}
className="min-h-[90px] resize-y" className="min-h-[90px] max-h-[200px] resize-y"
/> />
<div className="mt-3 flex items-center justify-end gap-2"> <div className="mt-3 flex items-center justify-end gap-2">
<Button variant="outline" onClick={onCancel}> <Button variant="outline" onClick={onCancel}>