mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Only set minWidth for placeholder if all elements are empty
This commit is contained in:
parent
9dd2a43017
commit
b8886c96da
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue