Open user uploaded cover photos in PhotoSwipe

Reported-by: OE5JFE
pull/10/head v1.9.5
Manuel Kasper 2020-09-03 21:49:20 +02:00
rodzic 71b8ea2039
commit 41386494bf
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -11,7 +11,8 @@ export default {
return {
src: this.photoSrc(coverPhoto, 'thumb'),
mediaLink: this.photoSrc(coverPhoto, 'large'),
attribution: coverPhoto.author
attribution: coverPhoto.author,
photo: coverPhoto
}
}
}

Wyświetl plik

@ -41,7 +41,10 @@
<div class="columns">
<div v-if="coverPhoto && !enlargeMap" class="photo-column column is-narrow">
<div class="photo">
<div style="text-align: center"><a :href="coverPhoto.mediaLink" target="_blank"><img :src="coverPhoto.src" /></a></div>
<div style="text-align: center">
<a v-if="coverPhoto.photo" href="#" @click="photoClicked(coverPhoto.photo)"><img :src="coverPhoto.src" /></a>
<a v-else :href="coverPhoto.mediaLink" target="_blank"><img :src="coverPhoto.src" /></a>
</div>
<div v-if="coverPhoto.description" class="description">{{ coverPhoto.description }}</div>
<div v-if="coverPhoto.attribution" class="attribution" v-html="coverPhoto.attribution"></div>
</div>