Skip to content

Commit

Permalink
hotfix: border positioning with padding
Browse files Browse the repository at this point in the history
  • Loading branch information
drinking-code committed Mar 11, 2022
1 parent 1c5b333 commit 7811799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default function RoundDiv({style, children, dontConvertShadow, ...props})
<div style={{
height: height - (widenedBorderWidth[0] + widenedBorderWidth[2]),
width: width - (widenedBorderWidth[1] + widenedBorderWidth[3]),
transform: `translate(-${border.width[3]}px, -${border.width[0]}px)`,
transform: `translate(-${padding[3] + border.width[3]}px, -${padding[0] + border.width[0]}px)`,
clipPath: `path("M0,0V${height}H${width}V0Z${innerPath}")`,
borderRadius: radius.map(n => (n * .95) + 'px').join(' '),
borderColor: border.color,
Expand Down

0 comments on commit 7811799

Please sign in to comment.