Skip to content

Commit

Permalink
💄 style: improve loading
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 20, 2024
1 parent e8a4880 commit 0bd5002
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/features/Preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,17 @@ const Preview = memo(() => {
<Center className={styles.container} flex={1} gap={8} justify={'center'} ref={ref}>
{isAppInited ? (
<>
{showProgress && (
<div className={styles.process}>
{progress === 0 ? (
<Center className={styles.waiting} gap={2} height={72} horizontal width={72}>
<div>{t('task.starting')}</div>
<ReactAnimatedEllipsis />
</Center>
) : (
{showProgress &&
(progress === 0 ? (
<Center className={styles.waiting} gap={2} height={72} horizontal width={72}>
<div>{t('task.starting')}</div>
<ReactAnimatedEllipsis />
</Center>
) : (
<div className={styles.process}>
<Progress percent={progress} size="small" type="circle" />
)}
</div>
)}
</div>
))}
{showImage ? (
<ImagePreview />
) : inLobeChat ? null : (
Expand Down

0 comments on commit 0bd5002

Please sign in to comment.