🐛 安装时进度条改为不确定状态
This commit is contained in:
@@ -27,7 +27,8 @@ const DownloadCard: Component<{ download: DownloadTask }> = (props) => {
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
<Progress
|
||||
value={['installing', 'installed'].includes(props.download.status) ? 100 : props.download.progress}
|
||||
value={props.download.status === 'installed' ? 100 : props.download.progress}
|
||||
indeterminate={props.download.status === 'installing'}
|
||||
class="flex-1"
|
||||
/>
|
||||
<span class="text-sm text-muted-foreground">
|
||||
|
||||
Reference in New Issue
Block a user