Skip to content

Commit 22d5dd5

Browse files
committed
fix(VVideo): prefer max-width, default to 100%
1 parent 83e67d1 commit 22d5dd5

File tree

13 files changed

+15
-11
lines changed

13 files changed

+15
-11
lines changed

packages/docs/src/examples/v-video/misc-mini.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
2-
<div class="d-flex align-center justify-center ga-6">
2+
<div class="d-flex align-center justify-center ga-6 flex-wrap">
33
<v-defaults-provider :defaults="{ VVideoControls: { VIconBtn: { color: 'red', border: 'sm' } } }">
44
<v-video
5+
aspect-ratio="1"
56
color="blue"
67
controls-variant="mini"
7-
height="300"
88
image="https://jsek.work/vt-sunflowers.jpg"
99
rounded="lg"
1010
src="https://jsek.work/vt-sunflowers.mp4"
@@ -26,8 +26,8 @@
2626
</v-defaults-provider>
2727

2828
<v-video
29+
aspect-ratio="1"
2930
controls-variant="mini"
30-
height="300"
3131
image="https://jsek.work/vt-sunflowers.jpg"
3232
rounded="xl"
3333
src="https://jsek.work/vt-sunflowers.mp4"

packages/docs/src/examples/v-video/misc-tube.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
controls-variant="tube"
77
density="comfortable"
88
image="https://jsek.work/vt-video-poster.jpg"
9+
max-width="450"
910
rounded="lg"
1011
src="https://jsek.work/vt-video.mp4"
1112
track-color="red"

packages/docs/src/examples/v-video/prop-color.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
33
<v-sheet class="px-6 py-2 border-b mb-3" color="surface">
4-
<div class="d-flex ga-12 flex-wrap align-center justify-center">
4+
<div class="d-flex ga-2 ga-md-12 flex-wrap align-center justify-center">
55
<div class="d-flex align-center ga-3">
66
<v-chip-group v-model="controlsVariant" mandatory>
77
<v-chip text="default" value="default" filter label></v-chip>
@@ -52,6 +52,7 @@
5252
:track-color="colors.track"
5353
class="mx-auto mb-3"
5454
image="https://jsek.work/vt-sunflowers.jpg"
55+
max-width="450"
5556
src="https://jsek.work/vt-sunflowers.mp4"
5657
eager
5758
muted

packages/docs/src/examples/v-video/prop-density.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="d-flex align-start justify-center ga-6">
2+
<div class="d-flex flex-wrap align-start justify-center ga-6">
33
<div v-for="density in options" :key="density">
44
<v-video
55
:density="density"

packages/docs/src/examples/v-video/prop-image.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:key="resetToPoster"
55
:image="posterUrl"
66
class="mx-auto mb-3"
7+
max-width="450"
78
src="https://jsek.work/vt-sunflowers.mp4"
89
muted
910
@loaded="loaded = true"

packages/docs/src/examples/v-video/prop-rounded.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
class="mx-auto"
88
height="260"
99
image="https://jsek.work/vt-sunflowers.jpg"
10+
max-width="450"
1011
src="https://jsek.work/vt-sunflowers.mp4"
1112
eager
1213
floating

packages/docs/src/examples/v-video/prop-start-at.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:start-at="10"
55
class="align-self-center"
66
image="https://jsek.work/vt-sunflowers.jpg"
7+
max-width="450"
78
src="https://jsek.work/vt-sunflowers.mp4"
89
eager
910
muted

packages/docs/src/examples/v-video/slot-append-and-prepend.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:start-at="10"
55
class="align-self-center"
66
image="https://jsek.work/vt-sunflowers.jpg"
7+
max-width="450"
78
src="https://jsek.work/vt-sunflowers.mp4"
89
eager
910
muted

packages/docs/src/examples/v-video/slot-controls.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
controls-variant="mini"
88
height="300"
99
image="https://jsek.work/vt-sunflowers.jpg"
10+
max-width="500"
1011
rounded="lg"
1112
src="https://jsek.work/vt-sunflowers.mp4"
12-
width="500"
1313
eager
1414
hide-overlay
1515
pills

packages/docs/src/examples/v-video/slot-header.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<v-video
44
class="align-self-center"
55
image="https://jsek.work/vt-sunflowers.jpg"
6+
max-width="450"
67
src="https://jsek.work/vt-sunflowers.mp4"
78
eager
89
muted

0 commit comments

Comments
 (0)