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
|
Obrigatório
|
||||||
</label>
|
</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" />
|
<Plus className="size-4" />
|
||||||
Adicionar
|
Adicionar
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,8 @@ export function SearchableCombobox({
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent
|
<PopoverContent
|
||||||
id={listId}
|
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">
|
<div className="border-b border-border/80 p-2">
|
||||||
<Input
|
<Input
|
||||||
|
|
@ -157,7 +158,7 @@ export function SearchableCombobox({
|
||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
<ScrollArea
|
<ScrollArea
|
||||||
className={cn("max-h-60", scrollClassName)}
|
className={cn("max-h-60 overflow-y-auto", scrollClassName)}
|
||||||
{...scrollProps}
|
{...scrollProps}
|
||||||
>
|
>
|
||||||
{filtered.length === 0 ? (
|
{filtered.length === 0 ? (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue