1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-25 09:45:04 +02:00
This commit is contained in:
syuilo
2026-07-11 09:42:27 +09:00
parent 7f3cbace05
commit 734a19c06f

View File

@@ -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;