diff --git a/src/runtime/components/ScriptYouTubePlayer.vue b/src/runtime/components/ScriptYouTubePlayer.vue index d35e757d..8c8f866e 100644 --- a/src/runtime/components/ScriptYouTubePlayer.vue +++ b/src/runtime/components/ScriptYouTubePlayer.vue @@ -116,7 +116,7 @@ const rootAttrs = computed(() => { backgroundColor: 'black', maxWidth: '100%', width: `${props.width}px`, - height: `'auto'`, + height: 'auto', aspectRatio: `${props.width}/${props.height}`, }, ...(trigger instanceof Promise ? trigger.ssrAttrs || {} : {}),