fix(stage-tamagotchi): progress ui

This commit is contained in:
Neko Ayaka
2025-06-29 23:30:19 +08:00
parent df4ddb9b7a
commit 379a495b14
2 changed files with 6 additions and 4 deletions
@@ -70,12 +70,12 @@ const totalProgress = computed(() => {
<div relative overflow-hidden rounded-md>
<div
bg="primary-300 dark:primary-300/50"
absolute h-4 will-change-width
:style="{ width: `${Math.min(file.value.progress, 0.5)}%` }"
absolute h-4 min-w-2 rounded-md will-change-width
:style="{ width: `${file.value.progress}%` }"
transition="width duration-500 ease-in-out"
/>
<div
bg="neutral-100 dark:neutral-900" h-4 w-full
bg="neutral-100 dark:neutral-900" h-4 w-full rounded-md
/>
</div>
</div>
+3 -1
View File
@@ -80,7 +80,9 @@ function openChat() {
}
onMounted(async () => {
unListenFuncs.push(await listen('tauri-app:model-load-progress', event => useResourcesStore().appendResource(event)))
unListenFuncs.push(await listen('tauri-app:model-load-progress', (event) => {
useResourcesStore().appendResource(event)
}))
// Load models
invoke('load_models')