From 9c5a8c00b99837be53cdc4b5f71822b66badab1b Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sat, 16 May 2026 19:16:28 +0530 Subject: [PATCH] refactor: improve error handling layout in CitationPanel and update Separator styling across multiple components for consistency --- .../components/citation-panel/citation-panel.tsx | 8 +++++--- surfsense_web/components/shared/image-config-dialog.tsx | 2 +- surfsense_web/components/shared/llm-config-form.tsx | 4 ++-- surfsense_web/components/shared/vision-config-dialog.tsx | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/surfsense_web/components/citation-panel/citation-panel.tsx b/surfsense_web/components/citation-panel/citation-panel.tsx index a63efa296..890ac11ac 100644 --- a/surfsense_web/components/citation-panel/citation-panel.tsx +++ b/surfsense_web/components/citation-panel/citation-panel.tsx @@ -133,9 +133,11 @@ export const CitationPanelContent: FC = ({ )} {error && ( -

- {error instanceof Error ? error.message : "Failed to load citation"} -

+
+

+ {error instanceof Error ? error.message : "Failed to load citation"} +

+
)} {!isLoading && !error && data && ( diff --git a/surfsense_web/components/shared/image-config-dialog.tsx b/surfsense_web/components/shared/image-config-dialog.tsx index 1b94f0a35..36d16081a 100644 --- a/surfsense_web/components/shared/image-config-dialog.tsx +++ b/surfsense_web/components/shared/image-config-dialog.tsx @@ -298,7 +298,7 @@ export function ImageConfigDialog({ /> - +
diff --git a/surfsense_web/components/shared/llm-config-form.tsx b/surfsense_web/components/shared/llm-config-form.tsx index 6b00408cb..1356ed58f 100644 --- a/surfsense_web/components/shared/llm-config-form.tsx +++ b/surfsense_web/components/shared/llm-config-form.tsx @@ -404,7 +404,7 @@ export function LLMConfigForm({ {/* Advanced Parameters */} {showAdvanced && ( <> - +
- +