Skip to content

Commit

Permalink
Merge pull request #10 from suyash5053/9-menu-items-ui-fix
Browse files Browse the repository at this point in the history
fix: Width of the menu item component
  • Loading branch information
alexanderson1993 authored Dec 15, 2024
2 parents c666add + 9b99d3f commit 9938d71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useUser } from "~/context/user";
import { Logo } from "./Logo";
import { Menu, Transition } from "@headlessui/react";
import { FaUser } from "react-icons/fa";
import { FC } from "react";
import type { FC } from "react";
import { Link } from "@remix-run/react";

const MenuItem: FC<{ to?: string; href?: string; disabled?: boolean }> = ({
Expand Down Expand Up @@ -73,9 +73,9 @@ export default function Header({ className }: { className?: string }) {
>
<Menu.Items
static
className="mt-2 w-56 origin-top-right divide-y divide-tgray-100 rounded-md border border-tgray-200 bg-tgray-600 shadow-lg outline-none"
className="mt-2 w-fit origin-top-right divide-y divide-tgray-100 rounded-md border border-tgray-200 bg-tgray-600 shadow-lg outline-none"
>
<div className="px-4 py-3">
<div className="flex flex-col px-4 py-3">
<span className="text-sm leading-5">Signed in as </span>
<span className="truncate text-sm font-medium leading-5 text-cerise-300">
{user.email}
Expand Down

0 comments on commit 9938d71

Please sign in to comment.