refactor: improve error handling layout in CitationPanel and update Separator styling across multiple components for consistency

This commit is contained in:
Anish Sarkar 2026-05-16 19:16:28 +05:30
parent 8001cae1b4
commit 9c5a8c00b9
4 changed files with 9 additions and 7 deletions

View file

@ -133,9 +133,11 @@ export const CitationPanelContent: FC<CitationPanelContentProps> = ({
)}
{error && (
<p className="py-8 text-sm text-destructive">
{error instanceof Error ? error.message : "Failed to load citation"}
</p>
<div className="flex min-h-full items-center justify-center text-center">
<p className="text-sm text-destructive">
{error instanceof Error ? error.message : "Failed to load citation"}
</p>
</div>
)}
{!isLoading && !error && data && (