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.

style: 调整 PhotoItem 参数和 InfoPanel 标签样式

Timothy Yin886f5e4aef6c
diff --git a/app/components/masonry/PhotoItem.client.vue b/app/components/masonry/PhotoItem.client.vue
index a055e064..21a62ffa 100644
--- a/app/components/masonry/PhotoItem.client.vue
+++ b/app/components/masonry/PhotoItem.client.vue
@@ -640,10 +640,10 @@ onUnmounted(() => {
>
<div
v-if="photo.exif.FocalLengthIn35mmFormat"
- class="flex items-center gap-1"
+ class="flex items-center gap-0.5"
>
<Icon
- name="streamline:image-accessories-lenses-photos-camera-shutter-picture-photography-pictures-photo-lens"
+ name="streamline:image-accessories-lenses-photos-camera-shutter-picture-photography-pictures-photo-lens" class="-mt-0.5"
/>
<span class="text-xs font-medium">
{{ photo.exif.FocalLengthIn35mmFormat }}
@@ -651,18 +651,18 @@ onUnmounted(() => {
</div>
<div
v-if="photo.exif.FNumber"
- class="flex items-center gap-1"
+ class="flex items-center gap-0.5"
>
- <Icon name="tabler:aperture" />
+ <Icon name="tabler:aperture" class="-mt-0.5" />
<span class="text-xs font-medium">
f/{{ photo.exif.FNumber }}
</span>
</div>
<div
v-if="photo.exif.ExposureTime"
- class="flex items-center gap-1"
+ class="flex items-center gap-0.5"
>
- <Icon name="material-symbols:shutter-speed" />
+ <Icon name="material-symbols:shutter-speed" class="-mt-0.5" />
<span class="text-xs font-medium">
{{ formatExposureTime(photo.exif.ExposureTime) }}
</span>
@@ -671,7 +671,7 @@ onUnmounted(() => {
v-if="photo.exif.ISO"
class="flex items-center gap-0.5"
>
- <Icon name="carbon:iso-outline" />
+ <Icon name="carbon:iso-outline" class="-mt-0.5" />
<span class="text-xs font-medium">{{ photo.exif.ISO }}</span>
</div>
</div>
diff --git a/app/components/photo/InfoPanel.vue b/app/components/photo/InfoPanel.vue
index d5a07ef8..f8177865 100644
--- a/app/components/photo/InfoPanel.vue
+++ b/app/components/photo/InfoPanel.vue
@@ -509,13 +509,15 @@ const isMobile = useMediaQuery('(max-width: 768px)')
标签
</h4>
<div class="flex flex-wrap gap-1">
- <span
+ <UBadge
v-for="tag in currentPhoto.tags"
:key="tag"
- class="px-2 py-1 text-xs bg-white/10 text-white rounded-full"
- >
- {{ tag }}
- </span>
+ :label="tag"
+ variant="soft"
+ size="sm"
+ color="neutral"
+ class="bg-white/10 text-white"
+ />
</div>
</div>
<PhotoKVRenderer