From 5a86a98448060145f07445a96b7e9ff4e6ca43cd Mon Sep 17 00:00:00 2001 From: ycchanau Date: Sat, 27 Jul 2024 17:53:07 +0800 Subject: [PATCH] better margin --- web/image_magnifier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/image_magnifier.js b/web/image_magnifier.js index cf93fe7..03c8787 100644 --- a/web/image_magnifier.js +++ b/web/image_magnifier.js @@ -107,9 +107,9 @@ const ext = { const img_per_col = Math.ceil(urls.length / img_per_row) || 1; const aspectRatio = (img.width * img_per_row) / (img.height * img_per_col); if (aspectRatio > 1) { - this.setSize([600, 600 / aspectRatio + 40]); + this.setSize([600, 600 / aspectRatio + 60]); } else { - this.setSize([600 * aspectRatio, 600 + 40]); + this.setSize([600 * aspectRatio, 600 + 60]); } } }).then(() => {