Quellcode durchsuchen

Improve combobox spacing

Make combobox more legible.
master
TheoryOfNekomata vor 1 Jahr
Ursprung
Commit
6158127e1b
1 geänderte Dateien mit 7 neuen und 3 gelöschten Zeilen
  1. +7
    -3
      categories/web/choice/react/src/components/ComboBox/index.tsx

+ 7
- 3
categories/web/choice/react/src/components/ComboBox/index.tsx Datei anzeigen

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


Laden…
Abbrechen
Speichern