Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

feat(live-photo): 优化实况照片指示器的展示

Timothy Yin81bbe8ef19e0
diff --git a/README.md b/README.md
index efaba41e..12e1f204 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,6 @@
<p align="center">
<img src="public/favicon.svg" alt="Chronoframe Logo" width="192">
<br/>
- <img src="https://img.shields.io/badge/Version-0.1.14-blue.svg" alt="Version">
<img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License">
<img src="https://img.shields.io/badge/Nuxt-4.0+-00DC82.svg" alt="Nuxt">
<img src="https://img.shields.io/badge/TypeScript-5.0+-3178C6.svg" alt="TypeScript">
diff --git a/app/components/photo/LivePhotoIndicator.vue b/app/components/photo/LivePhotoIndicator.vue
index 8768519b..05c9f1a6 100644
--- a/app/components/photo/LivePhotoIndicator.vue
+++ b/app/components/photo/LivePhotoIndicator.vue
@@ -24,23 +24,24 @@ defineProps<{
ease: 'easeInOut',
}"
>
- <!-- TODO: Apple style loading -->
<Icon
+ v-if="processingState?.isProcessing"
+ name="tabler:loader"
+ class="size-[17px] animate-spin"
+ />
+ <Icon
+ v-else
name="tabler:live-photo"
class="size-[17px]"
/>
<span>实况</span>
- <!-- Processing progress indicator -->
- <div
+ <span
v-if="processingState?.isProcessing"
- class="ml-1 flex items-center gap-1"
+ class="text-[12px] text-white/80 pl-1"
>
- <div class="size-1 bg-white/70 rounded-full animate-pulse" />
- <span class="text-[10px] text-white/80">
- {{ Math.round(processingState.progress || 0) }}%
- </span>
- </div>
+ {{ Math.round(processingState.progress || 0) }}%
+ </span>
</motion.div>
</template>