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;