From ea3db748c782a710599587ddb194cb2315f38c43 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 6 Jul 2024 10:53:51 +0900 Subject: [PATCH] :art: --- packages/frontend/src/components/MkEmbedCodeGenDialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/MkEmbedCodeGenDialog.vue b/packages/frontend/src/components/MkEmbedCodeGenDialog.vue index 79ad123a14..e1837dc584 100644 --- a/packages/frontend/src/components/MkEmbedCodeGenDialog.vue +++ b/packages/frontend/src/components/MkEmbedCodeGenDialog.vue @@ -251,9 +251,9 @@ function windowEventHandler(event: MessageEvent) { function calcScale() { if (!resizerRootEl.value) return; const previewWidth = resizerRootEl.value.clientWidth - 40; // 左右の余白 20pxずつ - const previewHeight = resizerRootEl.value.clientHeight - 40; // 上下の余白 20pxずつ(プレビューの文字は28px) + const previewHeight = resizerRootEl.value.clientHeight - 40; // 上下の余白 20pxずつ const iframeWidth = 500; - const scale = Math.min(previewWidth / iframeWidth, previewHeight / iframeHeight.value, 1); // 拡大はしない + const scale = Math.min(previewWidth / iframeWidth, previewHeight / iframeHeight.value, 1); // 拡大はしないので1を上限に iframeScale.value = scale; }