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
  • Loading branch information
bndynet committed Sep 25, 2019
1 parent 83d7c42 commit 1e37e1b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions docs/prop-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -862,12 +862,10 @@
"name": "boolean"
}
},
"autoOk": {
"defaultValue": {
"value": "false"
},
"description": "Auto accept date on selection",
"name": "autoOk",
"readOnly": {
"defaultValue": null,
"description": "Make picker read only",
"name": "readOnly",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
"name": "BasePickerProps"
Expand All @@ -877,10 +875,12 @@
"name": "boolean"
}
},
"readOnly": {
"defaultValue": null,
"description": "Make picker read only",
"name": "readOnly",
"autoOk": {
"defaultValue": {
"value": "false"
},
"description": "Auto accept date on selection",
"name": "autoOk",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
"name": "BasePickerProps"
Expand Down Expand Up @@ -1964,30 +1964,30 @@
"name": "boolean"
}
},
"onClose": {
"readOnly": {
"defaultValue": null,
"description": "On close callback",
"name": "onClose",
"description": "Make picker read only",
"name": "readOnly",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
"name": "BasePickerProps"
},
"required": false,
"type": {
"name": "() => void"
"name": "boolean"
}
},
"readOnly": {
"onClose": {
"defaultValue": null,
"description": "Make picker read only",
"name": "readOnly",
"description": "On close callback",
"name": "onClose",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
"name": "BasePickerProps"
},
"required": false,
"type": {
"name": "boolean"
"name": "() => void"
}
},
"autoOk": {
Expand Down Expand Up @@ -3135,30 +3135,30 @@
"name": "boolean"
}
},
"onClose": {
"readOnly": {
"defaultValue": null,
"description": "On close callback",
"name": "onClose",
"description": "Make picker read only",
"name": "readOnly",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
"name": "BasePickerProps"
},
"required": false,
"type": {
"name": "() => void"
"name": "boolean"
}
},
"readOnly": {
"onClose": {
"defaultValue": null,
"description": "Make picker read only",
"name": "readOnly",
"description": "On close callback",
"name": "onClose",
"parent": {
"fileName": "material-ui-pickers/lib/src/typings/BasePicker.tsx",
"name": "BasePickerProps"
},
"required": false,
"type": {
"name": "boolean"
"name": "() => void"
}
},
"autoOk": {
Expand Down
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 1e37e1b

Please sign in to comment.