Skip to content

Commit

Permalink
Fix clock number position issue if overwrote theme spacing does not r…
Browse files Browse the repository at this point in the history
…eturn a number as 1rem (#1327)
  • Loading branch information
bndynet authored and dmtrKovalenko committed Sep 25, 2019
1 parent 83d7c42 commit 1db67e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/views/Clock/ClockNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const useStyles = makeStyles(
height: 32,
userSelect: 'none',
position: 'absolute',
left: `calc(50% - ${size / 2}px)`,
left: `calc((100% - ${typeof size === 'number' ? `${size}px` : size}) / 2)`,
display: 'inline-flex',
justifyContent: 'center',
alignItems: 'center',
Expand Down

0 comments on commit 1db67e6

Please sign in to comment.