Skip to content

Commit

Permalink
reskin user menu a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
sphinxrave committed Aug 25, 2024
1 parent 92f6263 commit 8711723
Showing 1 changed file with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/shadcn/ui/dropdown-menu";
Expand Down Expand Up @@ -63,32 +62,28 @@ export function UserMenu() {
/>
<AvatarFallback>CN</AvatarFallback>
</Avatar>
<div className="flex flex-col gap-1">
<DropdownMenuLabel className="overflow-hidden text-ellipsis p-0 pl-2">
<div className="flex flex-col gap-1 pl-4">
<div className="overflow-hidden text-ellipsis font-semibold">
{user.username}
</DropdownMenuLabel>
<div className="flex flex-row gap-2 p-0 pl-2 text-sm">
<div
className={user.discord_id ? "text-secondary-11" : "text-base"}
>
<div className="i-mdi:discord" />
</div>
<div className="flex flex-row gap-2 text-sm">
<div className={user.discord_id ? "" : "saturate-0"}>
<div className="i-logos:discord-icon" />
</div>
<div
className={user.google_id ? "text-secondary-11" : "text-base"}
>
<div className="i-mdi:google" />
<div className={user.google_id ? "" : "saturate-0"}>
<div className="i-logos:google-icon" />
</div>
{/* <div
className={user.twitter_id ? "text-secondary-11" : "text-base"}
>
<div className="i-mdi:twitter" />
</div> */}
</div>
<DropdownMenuLabel className="flex flex-row capitalize text-primary-11">
<div className="flex flex-row capitalize text-primary-11">
<div className="i-mage:stars-c mr-1 animate-pulse"></div>
{user.role === "user" ? "" : user.role}
{user.contribution_count + " " + t("component.mainNav.points")}
</DropdownMenuLabel>
</div>
</div>
</DropdownMenuItem>
<DropdownMenuSeparator className="" />
Expand Down

0 comments on commit 8711723

Please sign in to comment.