Skip to content

Commit 7811799

Browse files
committed
hotfix: border positioning with padding
1 parent 1c5b333 commit 7811799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export default function RoundDiv({style, children, dontConvertShadow, ...props})
153153
<div style={{
154154
height: height - (widenedBorderWidth[0] + widenedBorderWidth[2]),
155155
width: width - (widenedBorderWidth[1] + widenedBorderWidth[3]),
156-
transform: `translate(-${border.width[3]}px, -${border.width[0]}px)`,
156+
transform: `translate(-${padding[3] + border.width[3]}px, -${padding[0] + border.width[0]}px)`,
157157
clipPath: `path("M0,0V${height}H${width}V0Z${innerPath}")`,
158158
borderRadius: radius.map(n => (n * .95) + 'px').join(' '),
159159
borderColor: border.color,

0 commit comments

Comments
 (0)