Skip to content

Commit

Permalink
Simplify viewports in Storybook and match Figma (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga authored Nov 23, 2023
1 parent eec00fb commit 72bfcd9
Showing 1 changed file with 11 additions and 59 deletions.
70 changes: 11 additions & 59 deletions storybook/storybook-react/config/viewports.ts
Original file line number Diff line number Diff line change
@@ -1,75 +1,27 @@
import { ViewportMap } from './types'

export const viewports: ViewportMap = {
phoneSm: {
name: 'Small phone',
phone: {
name: 'Phone',
styles: {
height: '812px',
width: '375px',
height: '680px',
width: '320px',
},
type: 'mobile',
},
phoneMd: {
name: 'Medium phone',
tablet: {
name: 'Tablet',
styles: {
height: '844px',
width: '390px',
},
type: 'mobile',
},
phoneLg: {
name: 'Large phone',
styles: {
height: '926px',
width: '428px',
},
type: 'mobile',
},
tabletSm: {
name: 'Small tablet',
styles: {
height: '768px',
width: '1024px',
},
type: 'tablet',
},
tabletMd: {
name: 'Medium tablet',
styles: {
height: '800px',
width: '1280px',
},
type: 'tablet',
},
tabletLg: {
name: 'Large tablet',
styles: {
height: '1024px',
width: '1366px',
height: '1080px',
width: '832px',
},
type: 'tablet',
},
desktopSm: {
name: 'Small desktop',
styles: {
height: '900px',
width: '1440px',
},
type: 'desktop',
},
desktopMd: {
name: 'Medium desktop',
desktop: {
name: 'Desktop',
styles: {
height: '1080px',
width: '1920px',
},
type: 'desktop',
},
desktopLg: {
name: 'Large desktop',
styles: {
height: '1440px',
width: '2560px',
width: '1600px',
},
type: 'desktop',
},
Expand Down

0 comments on commit 72bfcd9

Please sign in to comment.