From 7fa1810d5061ef7ad5896e69c1cd4bbdbfc90c59 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sun, 5 Apr 2026 23:14:54 +0530 Subject: [PATCH] refactor: simplify CommentComposer button layout and update placeholder text in CommentItem --- .../comment-composer/comment-composer.tsx | 26 ++++++++----------- .../comment-item/comment-actions.tsx | 4 +-- .../comment-item/comment-item.tsx | 2 +- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx b/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx index 3d6ea384b..e14022f5c 100644 --- a/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx +++ b/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx @@ -1,6 +1,6 @@ "use client"; -import { ArrowUp, Send, X } from "lucide-react"; +import { ArrowUp } from "lucide-react"; import { useCallback, useEffect, useRef, useState } from "react"; import { Button } from "@/components/ui/button"; import { Popover, PopoverAnchor, PopoverContent } from "@/components/ui/popover"; @@ -300,16 +300,15 @@ export function CommentComposer({
{onCancel && ( - + )}
diff --git a/surfsense_web/components/chat-comments/comment-item/comment-actions.tsx b/surfsense_web/components/chat-comments/comment-item/comment-actions.tsx index 564a6ba84..9638ac01c 100644 --- a/surfsense_web/components/chat-comments/comment-item/comment-actions.tsx +++ b/surfsense_web/components/chat-comments/comment-item/comment-actions.tsx @@ -21,9 +21,9 @@ export function CommentActions({ canEdit, canDelete, onEdit, onDelete }: Comment diff --git a/surfsense_web/components/chat-comments/comment-item/comment-item.tsx b/surfsense_web/components/chat-comments/comment-item/comment-item.tsx index 4996fe01b..eb374ba49 100644 --- a/surfsense_web/components/chat-comments/comment-item/comment-item.tsx +++ b/surfsense_web/components/chat-comments/comment-item/comment-item.tsx @@ -198,7 +198,7 @@ export function CommentItem({