Skip to content

Commit d95463f

Browse files
cezaraugustopetemill
authored andcommitted
allow welcome page story to be max width and height
1 parent bc8819d commit d95463f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

components/brave_welcome_ui/stories/story.tsx

+10
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,21 @@
55
import * as React from 'react'
66
import { storiesOf } from '@storybook/react'
77
import { withKnobs, boolean } from '@storybook/addon-knobs'
8+
89
// Components
910
import WelcomePage from './page/index'
1011

12+
const fullPageStoryStyles: object = {
13+
width: '-webkit-fill-available',
14+
height: '-webkit-fill-available'
15+
}
16+
17+
export const FullPageStory = (storyFn: any) =>
18+
<div style={fullPageStoryStyles}>{storyFn()}</div>
19+
1120
storiesOf('Welcome', module)
1221
.addDecorator(withKnobs)
22+
.addDecorator(FullPageStory)
1323
.add('Page', () => {
1424
return (
1525
<WelcomePage isDefaultSearchGoogle={boolean('Is default search google?', true)}/>

0 commit comments

Comments
 (0)