1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-11 13:18:59 +09:00
This commit is contained in:
kakkokari-gtyih 2024-07-06 10:53:51 +09:00
parent 0555e98c3f
commit ea3db748c7

View File

@ -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; // 20px28px
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;
}