Min font size of 16px to prevent zoom on iOS

This commit is contained in:
Jackson Harper
2023-06-20 10:18:29 +08:00
parent 07ae720cf5
commit d0140b33d9

View File

@ -112,6 +112,9 @@ export const LabelsPicker = (props: LabelsPickerProps): JSX.Element => {
marginTop: '0px',
marginBottom: '0px',
},
'>input': {
fontSize: '16px',
},
}}
onMouseDown={(event) => {
inputRef.current?.focus()
@ -153,10 +156,14 @@ export const LabelsPicker = (props: LabelsPickerProps): JSX.Element => {
}}
>
<AutosizeInput
placeholder={isEmpty ? 'Filter for label' : undefined}
placeholder={isEmpty ? 'Add Labels' : undefined}
inputRef={(ref) => {
inputRef.current = ref
}}
inputStyle={{
fontSize: '16px',
minWidth: '100px',
}}
onFocus={() => {
if (props.onFocus) {
props.onFocus()