Skip to content

Commit 0bd5002

Browse files
committed
💄 style: improve loading
1 parent e8a4880 commit 0bd5002

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/features/Preview/index.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,17 @@ const Preview = memo(() => {
6464
<Center className={styles.container} flex={1} gap={8} justify={'center'} ref={ref}>
6565
{isAppInited ? (
6666
<>
67-
{showProgress && (
68-
<div className={styles.process}>
69-
{progress === 0 ? (
70-
<Center className={styles.waiting} gap={2} height={72} horizontal width={72}>
71-
<div>{t('task.starting')}</div>
72-
<ReactAnimatedEllipsis />
73-
</Center>
74-
) : (
67+
{showProgress &&
68+
(progress === 0 ? (
69+
<Center className={styles.waiting} gap={2} height={72} horizontal width={72}>
70+
<div>{t('task.starting')}</div>
71+
<ReactAnimatedEllipsis />
72+
</Center>
73+
) : (
74+
<div className={styles.process}>
7575
<Progress percent={progress} size="small" type="circle" />
76-
)}
77-
</div>
78-
)}
76+
</div>
77+
))}
7978
{showImage ? (
8079
<ImagePreview />
8180
) : inLobeChat ? null : (

0 commit comments

Comments
 (0)