Skip to content

Commit

Permalink
add padding and zero margin for multicard
Browse files Browse the repository at this point in the history
  • Loading branch information
jalezi committed Apr 23, 2021
1 parent 2aec4e2 commit 4f1da66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ module.exports.handler = async (event, context, callback) => {
}
await page.evaluate(sel => {
const el = document.querySelector(sel);
el.style['margin-bottom'] = 'no';
console.log(el.style);
el.style['margin'] = '0 0 0 0';
el.style.padding = '16px 16px 16px 16px';
}, selector);

const maxWidth = 4 * 325;
Expand Down
5 changes: 3 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ const run = async (
}
await page.evaluate(sel => {
const el = document.querySelector(sel);
el.style['margin-bottom'] = 'no';
el.style['margin'] = '0 0 0 0';
el.style.padding = '16px 16px 16px 16px';
console.log(el.style);
}, selector);

Expand Down Expand Up @@ -133,4 +134,4 @@ const run = async (
};

(async () =>
await run({ type: 'multicard', screen: 'HOS', custom: '' }, false))();
await run({ type: 'multicard', screen: 'ALL', custom: '' }, false))();

0 comments on commit 4f1da66

Please sign in to comment.