Only set minWidth for placeholder if all elements are empty

This commit is contained in:
Jackson Harper
2023-06-20 10:55:41 +08:00
parent 9dd2a43017
commit b8886c96da

View File

@ -164,7 +164,10 @@ export const LabelsPicker = (props: LabelsPickerProps): JSX.Element => {
}}
inputStyle={{
fontSize: '16px',
minWidth: '100px',
minWidth:
props.inputValue.length == 0 && props.selectedLabels.length == 0
? '100px'
: '2px',
}}
onFocus={() => {
if (props.onFocus) {