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 e2ab26aee..3e9b4504f 100644 --- a/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx +++ b/surfsense_web/components/chat-comments/comment-composer/comment-composer.tsx @@ -315,10 +315,7 @@ export function CommentComposer({ size={compact ? "icon" : "sm"} onClick={handleSubmit} disabled={!canSubmit} - className={cn( - !canSubmit && "opacity-50", - compact && "size-8 shrink-0 rounded-full" - )} + className={cn(!canSubmit && "opacity-50", compact && "size-8 shrink-0 rounded-full")} > {compact ? ( 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 241497f9c..5c0e27779 100644 --- a/surfsense_web/components/chat-comments/comment-item/comment-actions.tsx +++ b/surfsense_web/components/chat-comments/comment-item/comment-actions.tsx @@ -33,7 +33,7 @@ export function CommentActions({ canEdit, canDelete, onEdit, onDelete }: Comment Edit )} - {canDelete && ( + {canDelete && ( Delete 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 739a2cbd3..122601008 100644 --- a/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx +++ b/surfsense_web/components/chat-comments/comment-panel/comment-panel.tsx @@ -29,16 +29,19 @@ export function CommentPanel({ return (
-
-
- Loading comments... -
-
+ "flex min-h-[120px] items-center justify-center p-4", + isInline && + "w-full rounded-xl border-sidebar-border border bg-sidebar text-sidebar-foreground shadow-lg", + !isMobile && + !isInline && + "w-96 rounded-lg border-sidebar-border border bg-sidebar text-sidebar-foreground" + )} + > +
+
+ Loading comments... +
+
); } @@ -53,8 +56,11 @@ export function CommentPanel({ className={cn( "flex flex-col", isMobile && "w-full", - isInline && "w-full rounded-xl border-sidebar-border border bg-sidebar text-sidebar-foreground shadow-lg max-h-80", - !isMobile && !isInline && "w-85 rounded-lg border-sidebar-border border bg-sidebar text-sidebar-foreground" + isInline && + "w-full rounded-xl border-sidebar-border border bg-sidebar text-sidebar-foreground shadow-lg max-h-80", + !isMobile && + !isInline && + "w-85 rounded-lg border-sidebar-border border bg-sidebar text-sidebar-foreground" )} style={ !isMobile && !isInline && effectiveMaxHeight ? { maxHeight: effectiveMaxHeight } : undefined @@ -79,18 +85,18 @@ export function CommentPanel({
)} -
- -
+
+ +
); } diff --git a/surfsense_web/components/chat-comments/comment-thread/comment-thread.tsx b/surfsense_web/components/chat-comments/comment-thread/comment-thread.tsx index 2ce4b491c..76ff3158e 100644 --- a/surfsense_web/components/chat-comments/comment-thread/comment-thread.tsx +++ b/surfsense_web/components/chat-comments/comment-thread/comment-thread.tsx @@ -129,17 +129,17 @@ export function CommentThread({ {isReplyComposerOpen ? (
- +
) : (