Skip to content

Commit e4c917d

Browse files
committed
docs: make captions story have smaller dimensions
1 parent 1bcfbb9 commit e4c917d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/components/media/video/video.stories.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import type { StoryFn } from '@storybook/react'
2+
import React from 'react'
3+
14
import Video from './video'
25

36
export default {
@@ -37,6 +40,18 @@ export const WithCaptions = {
3740
title: 'Sound with Captions',
3841
captions: 'audioExamples/captions.vtt',
3942
},
43+
parameters: {
44+
layout: 'centered',
45+
},
46+
decorators: [
47+
(Story: StoryFn) => {
48+
return (
49+
<div style={{ width: '500px' }}>
50+
<Story />
51+
</div>
52+
)
53+
},
54+
],
4055
}
4156

4257
export const WithPoster = {

0 commit comments

Comments
 (0)