mediawiki-extensions-Popups/.storybook/helpers/grid.js
jdlrobson 9adf023eee Fix storybook IMG assets
When we changed the thumbnail size we changed the URIs to images
but didn't update the local storybook assets.

Bug: T266797
Change-Id: Iea4de1524a2f60cc759d59338882fe236e409bd2
2021-01-05 19:50:40 +00:00

18 lines
344 B
JavaScript

/**
* Grid helper for absolutely positioning popups on page.
*/
const grid = {
landscape: {
row: ( x ) => 50 + ( ( x - 1 ) * 460 ),
col: ( x ) => 50 + ( ( x - 1 ) * 500 ),
flipOffset: 400
},
portrait: {
row: ( x ) => 50 + ( ( x - 1 ) * 450 ),
col: ( x ) => 50 + ( ( x - 1 ) * 400 ),
flipOffset: 400
},
}
export default grid;