diff --git a/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx b/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx index 81de6fb76..140197908 100644 --- a/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx +++ b/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx @@ -32,7 +32,7 @@ export function CommentPanel({ if (isLoading) { return ( -
+
Loading comments... @@ -44,7 +44,7 @@ export function CommentPanel({ const hasThreads = threads.length > 0; return ( -
+
{hasThreads ? (
-
- - {thread.replies.length > 1 && ( + {thread.replies.length > 1 && ( +
+
+ )} {thread.replies.length > 0 && (thread.replies.length === 1 || isRepliesExpanded) && (
@@ -94,8 +85,8 @@ export function CommentThread({
)} - {isReplyComposerOpen && ( -
+
+ {isReplyComposerOpen ? ( -
- )} + ) : ( + + )} +
); } -