From 679b310fb5bd55eff6b9f26beea4c1891767df3b Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Sat, 5 Apr 2025 17:15:48 +0200 Subject: [PATCH] style(comment edit form): improve design --- .../comment-edit-form/comment-edit-form.tsx | 112 ++++++++++-------- .../reply-form/reply-form.module.css | 5 - 2 files changed, 60 insertions(+), 57 deletions(-) diff --git a/src/components/comment-edit-form/comment-edit-form.tsx b/src/components/comment-edit-form/comment-edit-form.tsx index 351c5661..d5bca4ba 100644 --- a/src/components/comment-edit-form/comment-edit-form.tsx +++ b/src/components/comment-edit-form/comment-edit-form.tsx @@ -19,8 +19,6 @@ const CommentEditForm = ({ commentCid, hideCommentEditForm }: CommentEditFormPro const [showOptions, setShowOptions] = useState(false); const [showFormattingHelp, setShowFormattingHelp] = useState(false); const [showPreview, setShowPreview] = useState(false); - const spoilerClass = showOptions ? styles.spoilerVisible : styles.spoilerHidden; - const nsfwClass = showOptions ? styles.spoilerVisible : styles.spoilerHidden; const textRef = useRef(null); let post: any; @@ -62,30 +60,40 @@ const CommentEditForm = ({ commentCid, hideCommentEditForm }: CommentEditFormPro return (
-
- - + + + + + + +
+ )} {!showPreview ? (