diff --git a/src/components/PictureSwipe.vue b/src/components/PictureSwipe.vue index 61e5658..4ef4502 100644 --- a/src/components/PictureSwipe.vue +++ b/src/components/PictureSwipe.vue @@ -4,7 +4,7 @@
- +
@@ -113,6 +113,19 @@ export default { if (event.moved) { this.$emit('movePicture', event.moved.newIndex, event.moved.oldIndex, event.element) } + }, + thumbSize (item) { + let thumbW = item.w + let thumbH = item.h + if (thumbW > 256) { + thumbH = (thumbH * 256) / thumbW + thumbW = 256 + } + if (thumbH > 128) { + thumbW = (thumbW * 128) / thumbH + thumbH = 128 + } + return { w: Math.round(thumbW), h: Math.round(thumbH) } } }, data () { diff --git a/src/components/SummitPhotosGroup.vue b/src/components/SummitPhotosGroup.vue index 06648c7..cb065ce 100644 --- a/src/components/SummitPhotosGroup.vue +++ b/src/components/SummitPhotosGroup.vue @@ -171,6 +171,7 @@ export default { .photos >>> figure img { max-height: 128px; max-width: 256px; + background-color: #e7e7e7; } >>> .photo-title { font-size: 1rem;