From 79cc1a7e2a6170fa8ee7694b65e9f9ee21e9150f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nagy=20L=C3=A1szl=C3=B3?= Date: Tue, 10 May 2022 19:22:51 +0200 Subject: [PATCH] Fixes #343 by setting the image width to auto, and centering it in the modal window. --- pinry-spa/src/components/PinPreview.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pinry-spa/src/components/PinPreview.vue b/pinry-spa/src/components/PinPreview.vue index ed2aff1..cd5e6a6 100644 --- a/pinry-spa/src/components/PinPreview.vue +++ b/pinry-spa/src/components/PinPreview.vue @@ -120,6 +120,9 @@ export default { } /* preview size should always less then screen */ .card-image img { - width: 100%; + padding: 10px; + margin-left: auto; + margin-right: auto; + width: auto; }