From 1156bc17ba5c0056794745ecb410b4bfc389c048 Mon Sep 17 00:00:00 2001 From: Andrea Colla Date: Wed, 4 Mar 2026 20:20:55 +0100 Subject: [PATCH 1/2] Add ratio props to ScriptVimeoPlayer --- src/runtime/components/ScriptVimeoPlayer.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/runtime/components/ScriptVimeoPlayer.vue b/src/runtime/components/ScriptVimeoPlayer.vue index 81abe9711..602360352 100644 --- a/src/runtime/components/ScriptVimeoPlayer.vue +++ b/src/runtime/components/ScriptVimeoPlayer.vue @@ -52,8 +52,10 @@ const props = withDefaults(defineProps<{ vimeoOptions?: VimeoOptions id?: number | undefined url?: string | undefined + ratio?: string }>(), { trigger: 'mousedown', + ratio: '16/9', }) const emits = defineEmits() @@ -247,10 +249,11 @@ const rootAttrs = computed(() => { 'aria-live': 'polite', 'role': 'application', 'style': { + '--vimeo-ratio': props.ratio, maxWidth: '100%', width: `auto`, height: 'auto', - aspectRatio: `16/9`, + aspectRatio: props.ratio, position: 'relative', backgroundColor: 'black', }, @@ -295,7 +298,7 @@ onBeforeUnmount(() => player?.unload())