diff --git a/docs/app/components/content/ComponentExample.vue b/docs/app/components/content/ComponentExample.vue index 8004fbc1..ca4478f6 100644 --- a/docs/app/components/content/ComponentExample.vue +++ b/docs/app/components/content/ComponentExample.vue @@ -132,11 +132,18 @@ const optionsValues = ref(props.options?.reduce((acc, option) => { return acc }, {} as Record) || {}) -const urlSearchParams = computed(() => new URLSearchParams({ - ...optionsValues.value, - ...componentProps, - width: Math.round(width.value).toString() -}).toString()) +const urlSearchParams = computed(() => { + const params = { + ...optionsValues.value, + ...componentProps + } + + if (!props.iframeMobile) { + params.width = Math.round(width.value).toString() + } + + return new URLSearchParams(params).toString() +})