From a94fe1c9d005267d8e73efc9c21d6f0382141c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Horv=C3=A1th=20B=C3=A1lint?= <40771359+horvbalint@users.noreply.github.com> Date: Mon, 12 Jun 2023 20:46:53 +0200 Subject: [PATCH] feat: media preview modal - better zoom support (#2133) --- components/modal/ModalMediaPreview.vue | 24 +- .../modal/ModalMediaPreviewCarousel.vue | 293 ++++++++++++++---- 2 files changed, 246 insertions(+), 71 deletions(-) diff --git a/components/modal/ModalMediaPreview.vue b/components/modal/ModalMediaPreview.vue index 80808775..69dca036 100644 --- a/components/modal/ModalMediaPreview.vue +++ b/components/modal/ModalMediaPreview.vue @@ -53,21 +53,19 @@ onUnmounted(() => locked.value = false)
-
-
- +
+ -
-
- {{ index + 1 }} / {{ mediaPreviewList.length }} -
-

- {{ current.description }} -

+
+
+ {{ index + 1 }} / {{ mediaPreviewList.length }}
+

+ {{ current.description }} +

diff --git a/components/modal/ModalMediaPreviewCarousel.vue b/components/modal/ModalMediaPreviewCarousel.vue index f5794c5e..84d4718c 100644 --- a/components/modal/ModalMediaPreviewCarousel.vue +++ b/components/modal/ModalMediaPreviewCarousel.vue @@ -1,12 +1,11 @@