Преглед на файлове

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',


Зареждане…
Отказ
Запис