Skip to content

Commit

Permalink
Fixed small issue on command component
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotvf7 committed Feb 26, 2024
1 parent 99582dc commit a8d8033
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const CoursePicker = () => {
</DialogHeader>
<MajorSearchCombobox />
<Separator />
<div className="w-[55rem] grid-cols-[1fr_3rem_1fr] grid">
<div className="grid w-[55rem] grid-cols-[1fr_3rem_1fr]">
<CourseYearTabs />
<Separator orientation="vertical" className="mx-5" />
<PickedCoursesList />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CheckIcon, ChevronUpDownIcon } from '@heroicons//react/24/solid'
import MajorContext from '../../../../../contexts/MajorContext'
import { cn } from '../../../../../utils'
import { Button } from '../../../../../components/ui/button'
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem } from '../../../../../components/ui/command'
import { Command, CommandEmpty, CommandList, CommandInput, CommandItem } from '../../../../../components/ui/command'
import { Popover, PopoverContent, PopoverTrigger } from '../../../../../components/ui/popover'

/**
Expand Down Expand Up @@ -62,8 +62,7 @@ const MajorSearchCombobox = () => {
>
<CommandInput placeholder="Procurar curso..." className="h-9" />
<CommandEmpty>Nenhum curso corresponde à tua pesquisa.</CommandEmpty>
<CommandGroup className="h-fit max-h-64 overflow-y-auto scroll-smooth">
{/* <ScrollArea className="h-64"> */}
<CommandList>
<CommandItem value="remove" onSelect={() => setSelectedMajor(null)}>
Remover Seleção
</CommandItem>
Expand All @@ -83,8 +82,7 @@ const MajorSearchCombobox = () => {
/>
</CommandItem>
))}
{/* </ScrollArea> */}
</CommandGroup>
</CommandList>
</Command>
</PopoverContent>
</Popover>
Expand Down

0 comments on commit a8d8033

Please sign in to comment.