mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-21 18:55: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 && (
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ export function ImageConfigDialog({
|
|||
/>
|
||||
</div>
|
||||
|
||||
<Separator />
|
||||
<Separator className="bg-popover-border" />
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label className="text-sm font-medium">Provider *</Label>
|
||||
|
|
|
|||
|
|
@ -404,7 +404,7 @@ export function LLMConfigForm({
|
|||
{/* Advanced Parameters */}
|
||||
{showAdvanced && (
|
||||
<>
|
||||
<Separator />
|
||||
<Separator className="bg-popover-border" />
|
||||
<Collapsible open={advancedOpen} onOpenChange={setAdvancedOpen}>
|
||||
<CollapsibleTrigger asChild>
|
||||
<Button
|
||||
|
|
@ -443,7 +443,7 @@ export function LLMConfigForm({
|
|||
)}
|
||||
|
||||
{/* System Instructions & Citations Section */}
|
||||
<Separator />
|
||||
<Separator className="bg-popover-border" />
|
||||
<Collapsible open={systemInstructionsOpen} onOpenChange={setSystemInstructionsOpen}>
|
||||
<CollapsibleTrigger asChild>
|
||||
<Button
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ export function VisionConfigDialog({
|
|||
/>
|
||||
</div>
|
||||
|
||||
<Separator />
|
||||
<Separator className="bg-popover-border" />
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label className="text-sm font-medium">Provider *</Label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue