From 59e4a5cd323ce91cd58e2750c3cb4f9e318789ab Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:21:22 +0900 Subject: [PATCH] Update MkEmbedCodeGenDialog.vue --- packages/frontend/src/components/MkEmbedCodeGenDialog.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkEmbedCodeGenDialog.vue b/packages/frontend/src/components/MkEmbedCodeGenDialog.vue index 25707aeeb5..660846a287 100644 --- a/packages/frontend/src/components/MkEmbedCodeGenDialog.vue +++ b/packages/frontend/src/components/MkEmbedCodeGenDialog.vue @@ -59,7 +59,6 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts._embedCodeGen.header }} - {{ i18n.ts._embedCodeGen.autoload }} {{ i18n.ts._embedCodeGen.rounded }} {{ i18n.ts._embedCodeGen.border }} {{ i18n.ts._embedCodeGen.maxHeightWarn }} @@ -141,7 +140,6 @@ const phase = ref<'input' | 'result'>('input'); // 本URL生成用params const paramsForUrl = computed(() => ({ header: header.value, - autoload: autoload.value, maxHeight: typeof maxHeight.value === 'number' ? Math.max(0, maxHeight.value) : undefined, colorMode: colorMode.value === 'auto' ? undefined : colorMode.value, rounded: rounded.value, @@ -162,7 +160,6 @@ const embedPreviewUrl = computed(() => { const isEmbedWithScrollbar = computed(() => embedRouteWithScrollbar.includes(props.entity)); const header = ref(props.params?.header ?? true); -const autoload = ref(props.params?.autoload ?? false); const maxHeight = ref(props.params?.maxHeight !== 0 ? props.params?.maxHeight ?? undefined : 500); const colorMode = ref<'light' | 'dark' | 'auto'>(props.params?.colorMode ?? 'auto'); @@ -174,7 +171,6 @@ function applyToPreview() { paramsForPreview.value = { header: header.value, - autoload: false, // プレビューはスクロールできないので常にfalse maxHeight: typeof maxHeight.value === 'number' ? Math.max(0, maxHeight.value) : undefined, colorMode: colorMode.value === 'auto' ? undefined : colorMode.value, rounded: rounded.value, @@ -354,6 +350,7 @@ onUnmounted(() => { } .embedCodeGenPreviewIframe { + display: block; border: none; width: 500px; color-scheme: light dark;