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(photo): enhance photo description display with city information and improved formatting

Timothy Yin09e88b567cef
diff --git a/app/components/masonry/item/Photo.vue b/app/components/masonry/item/Photo.vue
index 7b2929c2..ba3c614a 100644
--- a/app/components/masonry/item/Photo.vue
+++ b/app/components/masonry/item/Photo.vue
@@ -584,15 +584,20 @@ onUnmounted(() => {
</p>
<p
v-if="photo.description"
- class="text-xs opacity-80"
+ class="text-xs text-justify opacity-80 line-clamp-2"
>
{{ photo.description }}
</p>
<p
- v-if="photo.dateTaken"
+ v-if="photo.dateTaken || photo.city"
class="text-xs font-medium opacity-80"
>
- {{ $dayjs(photo.dateTaken).format('YYYY-MM-DD') }}
+ <span v-if="photo.dateTaken">
+ {{ $dayjs(photo.dateTaken).format('YYYY-MM-DD') }}
+ </span>
+ <span v-if="photo.city">
+ <span v-if="photo.dateTaken"> · </span>{{ photo.city }}
+ </span>
</p>
</div>
<div