Skip to content

Commit f697b2e

Browse files
added loader before showing citation content dialouge
1 parent 2cf6181 commit f697b2e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/frontend/src/components/Answer/Answer.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,35 @@ export const Answer = ({ answer, onCitationClicked }: Props) => {
467467
</Stack>
468468
</Dialog>
469469

470+
471+
{isLoadingCitationContent && (
472+
<div style={{
473+
position: 'fixed',
474+
top: 0,
475+
left: 0,
476+
right: 0,
477+
bottom: 0,
478+
backgroundColor: 'rgba(0, 0, 0, 0.3)',
479+
display: 'flex',
480+
alignItems: 'center',
481+
justifyContent: 'center',
482+
zIndex: 1000
483+
}}>
484+
<div style={{
485+
backgroundColor: 'white',
486+
padding: '24px',
487+
borderRadius: '8px',
488+
boxShadow: '0px 14px 28.8px rgba(0, 0, 0, 0.24)',
489+
display: 'flex',
490+
flexDirection: 'column',
491+
alignItems: 'center',
492+
gap: '16px'
493+
}}>
494+
<Spinner size={3} />
495+
<Text>Loading citation content...</Text>
496+
</div>
497+
</div>
498+
)}
470499
{/* New citation content dialog */}
471500
<Dialog
472501
onDismiss={closeCitationContentDialog}

0 commit comments

Comments
 (0)