+ {{ expandedGalleryItem.title }} +
++ {{ expandedGalleryItem.description }} +
+From 5ebaf5663d0f4ba3d3eb6cd0d0c6ceeac382a9e3 Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Tue, 15 Mar 2022 22:10:30 -0700 Subject: [PATCH] Add image description, make controls less obtrusive, display native size by default (Fixes #407), Fixed closing modal by clicking out of it (Fixes #405) (#412) --- assets/images/utils/contract.svg | 1 + assets/images/utils/expand.svg | 3 ++ pages/_type/_id/gallery.vue | 75 ++++++++++++++++++++++++++------ 3 files changed, 66 insertions(+), 13 deletions(-) create mode 100644 assets/images/utils/contract.svg create mode 100644 assets/images/utils/expand.svg diff --git a/assets/images/utils/contract.svg b/assets/images/utils/contract.svg new file mode 100644 index 0000000000..977536891f --- /dev/null +++ b/assets/images/utils/contract.svg @@ -0,0 +1 @@ + diff --git a/assets/images/utils/expand.svg b/assets/images/utils/expand.svg new file mode 100644 index 0000000000..c1f364ead9 --- /dev/null +++ b/assets/images/utils/expand.svg @@ -0,0 +1,3 @@ + diff --git a/pages/_type/_id/gallery.vue b/pages/_type/_id/gallery.vue index de38ec5aa3..0791e31285 100644 --- a/pages/_type/_id/gallery.vue +++ b/pages/_type/_id/gallery.vue @@ -5,9 +5,10 @@ class="expanded-image-modal" @click="expandedGalleryItem = null" > -
+ {{ expandedGalleryItem.description }} +
+