Skip to content

Commit e046448

Browse files
committed
fix: adjust CommandGroup heading and update CommandDialog content styling for improved layout
1 parent aa6fc3c commit e046448

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Navbar/SearchInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const SearchInput = () => {
6666
/>
6767
<CommandList>
6868
<CommandEmpty>No results found.</CommandEmpty>
69-
<CommandGroup heading={_t("Results")}>
69+
<CommandGroup>
7070
{mutation.data?.map((hit) => (
7171
<CommandItem onSelect={() => handleSelect(hit)} key={hit.id}>
7272
<span>{hit.title}</span>

src/components/ui/command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function CommandDialog({
4646
<DialogTitle>{title}</DialogTitle>
4747
<DialogDescription>{description}</DialogDescription>
4848
</DialogHeader>
49-
<DialogContent className="overflow-hidden p-0">
49+
<DialogContent className="overflow-hidden p-0 top-[20%]">
5050
<Command
5151
shouldFilter={shouldFilter}
5252
className="[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"

0 commit comments

Comments
 (0)