Skip to content

Commit

Permalink
a11y support
Browse files Browse the repository at this point in the history
  • Loading branch information
aryasaatvik committed Jul 23, 2024
1 parent 71f81ca commit 304913a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/app/(dash)/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { getChatHistory } from "../../actions/fetchers";
import NewChatButton from "./newChatButton";
import AutoBreadCrumbs from "./autoBreadCrumbs";
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@repo/ui/shadcn/dropdown-menu";
import { CaretDownIcon } from "@radix-ui/react-icons";

async function Header() {
const chatThreads = await getChatHistory();
Expand Down Expand Up @@ -34,7 +35,10 @@ async function Header() {
<NewChatButton />

<DropdownMenu>
<DropdownMenuTrigger>History</DropdownMenuTrigger>
<DropdownMenuTrigger className="inline-flex flex-row flex-nowrap items-center text-muted-foreground hover:text-foreground">
History
<CaretDownIcon />
</DropdownMenuTrigger>
<DropdownMenuContent className="p-4 w-full md:w-[400px] max-h-[70vh] overflow-auto border-none">
{chatThreads.data.map((thread) => (
<DropdownMenuItem asChild>
Expand Down

0 comments on commit 304913a

Please sign in to comment.