mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Add mnin margin to buttons.
This commit is contained in:
parent
c8ee62892a
commit
e04f76d078
1 changed files with 3 additions and 1 deletions
|
@ -104,8 +104,10 @@ export class ApmButtons {
|
|||
return true;
|
||||
}
|
||||
|
||||
const minMargin = 11; // Minimum margin.
|
||||
const height = $el.height();
|
||||
$el.css('margin-top', `${Math.round(height * 0.3)}px`);
|
||||
const margin = Math.max(minMargin, Math.round(height * 0.3));
|
||||
$el.css('margin-top', `${margin}px`);
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue