From f7afcddd3a6fe5a2cab3295e8a0e80c4cee3e907 Mon Sep 17 00:00:00 2001 From: Vitalii Kulyk Date: Thu, 13 Mar 2025 15:28:00 +0200 Subject: [PATCH] feat: add minWidth, minListWidth, and minShowWidth options for preview image dimensions --- custom/preview.vue | 14 +++++++++++--- index.ts | 3 +++ types.ts | 16 ++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/custom/preview.vue b/custom/preview.vue index d20c756..7f0be1c 100644 --- a/custom/preview.vue +++ b/custom/preview.vue @@ -5,7 +5,7 @@ v-if="contentType && contentType.startsWith('image')" :src="url" class="rounded-md" - :style="maxWidth" + :style="[maxWidth, minWidth]" ref="img" data-zoomable @click.stop="zoom.open()" @@ -51,12 +51,12 @@