Skip to content

Commit

Permalink
fix: Html center bug introduced in #296 (#322)
Browse files Browse the repository at this point in the history
Simply a 0 is missing, maybe a copy paste issue. But without the 0 the center property isn't working anymore.
  • Loading branch information
JDihlmann committed Mar 7, 2021
1 parent 31270ca commit 7e5b1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/Html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const Html = React.forwardRef(
} else {
return {
position: 'absolute',
transform: center ? 'translate3d(-50%,-50%)' : 'none',
transform: center ? 'translate3d(-50%,-50%,0)' : 'none',
...(fullscreen && {
top: -size.height / 2,
left: -size.width / 2,
Expand Down

1 comment on commit 7e5b1ce

@vercel
Copy link

@vercel vercel bot commented on 7e5b1ce Mar 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.