mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-18 18:20:51 +00:00
9adf023eee
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
18 lines
344 B
JavaScript
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;
|