fix: corrige scroll do dropdown e ajusta botão Adicionar
- Adiciona collisionPadding e overflow-hidden no SearchableCombobox - Reduz tamanho do botão Adicionar no checklist (size=sm) - Adiciona espaçamento antes do botão Adicionar 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3f5062c9b6
commit
10918d0893
2 changed files with 4 additions and 3 deletions
|
|
@ -1514,7 +1514,7 @@ export function NewTicketDialog({
|
|||
/>
|
||||
Obrigatório
|
||||
</label>
|
||||
<Button type="button" onClick={handleAddChecklistItem} className="h-9 gap-2">
|
||||
<Button type="button" onClick={handleAddChecklistItem} size="sm" className="ml-2 gap-2">
|
||||
<Plus className="size-4" />
|
||||
Adicionar
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -126,7 +126,8 @@ export function SearchableCombobox({
|
|||
</PopoverTrigger>
|
||||
<PopoverContent
|
||||
id={listId}
|
||||
className={cn("z-50 w-[var(--radix-popover-trigger-width)] max-w-[480px] p-0", contentClassName)}
|
||||
className={cn("z-50 w-[var(--radix-popover-trigger-width)] max-w-[480px] overflow-hidden p-0", contentClassName)}
|
||||
collisionPadding={16}
|
||||
>
|
||||
<div className="border-b border-border/80 p-2">
|
||||
<Input
|
||||
|
|
@ -157,7 +158,7 @@ export function SearchableCombobox({
|
|||
</>
|
||||
) : null}
|
||||
<ScrollArea
|
||||
className={cn("max-h-60", scrollClassName)}
|
||||
className={cn("max-h-60 overflow-y-auto", scrollClassName)}
|
||||
{...scrollProps}
|
||||
>
|
||||
{filtered.length === 0 ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue