fix(comments): show name/email/url fields in reply form

This commit is contained in:
xfy 2026-06-11 13:30:54 +08:00
parent ec2f3e313e
commit 880c53d2a4

View File

@ -38,7 +38,6 @@ pub fn CommentForm(post_id: i32, parent_id: Option<i64>) -> Element {
}
div { class: "space-y-3",
if !is_reply {
div { class: "grid grid-cols-1 sm:grid-cols-2 gap-3",
div {
label { class: "block text-sm font-medium text-paper-secondary mb-1",
@ -80,11 +79,9 @@ pub fn CommentForm(post_id: i32, parent_id: Option<i64>) -> Element {
oninput: move |e| author_url.set(e.value()),
}
}
}
textarea {
class: "{INPUT_CLASS} min-h-[100px] resize-y",
placeholder: "写下你的评论…",
value: "{content_md}",
disabled: submitting(),
oninput: move |e| content_md.set(e.value()),