From 734a19c06ffe4df3e19b3dab2d3bbf03a470283e Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sat, 11 Jul 2026 09:42:27 +0900 Subject: [PATCH] fix --- packages/frontend/src/components/MkImageGallery.item.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkImageGallery.item.vue b/packages/frontend/src/components/MkImageGallery.item.vue index 661f31b288..06e45acc10 100644 --- a/packages/frontend/src/components/MkImageGallery.item.vue +++ b/packages/frontend/src/components/MkImageGallery.item.vue @@ -195,8 +195,8 @@ function calcContentRenderingSize(content: Content) { const contentRenderingSize = calcContentRenderingSize(props.content); const contentRenderingRect = contentRenderingSize != null ? { - left: (window.innerWidth - contentRenderingSize.width) / 2, - top: (window.innerHeight - contentRenderingSize.height) / 2, + left: (window.innerWidth - contentRenderingSize.width + padding.left - padding.right) / 2, + top: (window.innerHeight - contentRenderingSize.height + padding.top - padding.bottom) / 2, width: contentRenderingSize.width, height: contentRenderingSize.height, } : null;