Переглянути джерело

Improve combobox spacing

Make combobox more legible.
master
TheoryOfNekomata 9 місяці тому
джерело
коміт
6158127e1b
1 змінених файлів з 7 додано та 3 видалено
  1. +7
    -3
      categories/web/choice/react/src/components/ComboBox/index.tsx

+ 7
- 3
categories/web/choice/react/src/components/ComboBox/index.tsx Переглянути файл

@@ -166,12 +166,15 @@ export const ComboBox = React.forwardRef<ComboBoxDerivedElement, ComboBoxProps>(
'text-xxs': size === 'small',
'text-xs': size === 'medium',
},
{
'pb-1': variant === 'default' && size === 'small',
},
{
'pl-4': variant === 'default',
'pl-1.5': variant === 'alternate',
},
{
'pt-4': variant === 'alternate',
'pt-5': variant === 'alternate',
},
{
'pr-4': variant === 'default' && !indicator,
@@ -199,8 +202,9 @@ export const ComboBox = React.forwardRef<ComboBoxDerivedElement, ComboBoxProps>(
'top-0.5': variant === 'alternate',
},
{
'pt-2': variant === 'alternate' && size === 'small',
'pt-3': variant === 'alternate' && size !== 'small',
'pt-2.5': variant === 'alternate' && size === 'small',
'pt-3': variant === 'alternate' && size === 'medium',
'pt-4': variant === 'alternate' && size === 'large',
},
{
'pr-4': !indicator && variant === 'default',


Завантаження…
Відмінити
Зберегти