fix(category-combobox): Improve UI responsiveness and truncate category names

This commit is contained in:
Víctor Falcón 2025-12-01 09:36:34 +01:00
parent 9a97d8137e
commit 2cecd014e0
1 changed files with 3 additions and 3 deletions

View File

@ -69,15 +69,15 @@ export function CategoryCombobox({
role="combobox"
aria-expanded={open}
className={cn(
'w-full justify-between !pl-2',
'max-w-full w-full justify-between !pl-2',
triggerClassName,
)}
disabled={disabled}
>
{selectedCategory ? (
<div className="flex items-center gap-2">
<div className="flex items-center gap-2 overflow-x-hidden">
<CategoryIcon category={selectedCategory} />
<span>{selectedCategory.name}</span>
<span className='truncate'>{selectedCategory.name}</span>
</div>
) : value === 'null' ? (
<div className="flex items-center gap-2">