mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-23 19:05:16 +02:00
refactor: improve error handling layout in CitationPanel and update Separator styling across multiple components for consistency
This commit is contained in:
parent
8001cae1b4
commit
9c5a8c00b9
4 changed files with 9 additions and 7 deletions
|
|
@ -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 && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue