Skip to content

Commit 7f4cc08

Browse files
committed
fix face offset when parent has text-align:center
1 parent 63a99be commit 7f4cc08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/face/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export default function face(props: { color: string }): SVGElement {
99
style={{
1010
width: "100%",
1111
height: "100%",
12+
left: 0,
13+
top: 0,
1214
position: "absolute"
1315
}}
1416
width="200"

0 commit comments

Comments
 (0)