Fix user dropdown font (#2007)

This commit is contained in:
Chris Weaver 2024-07-31 17:29:14 -07:00 committed by GitHub
parent d6d391d244
commit 1654378850
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 6 deletions

View File

@ -60,9 +60,9 @@ export default async function RootLayout({
</head>
)}
<body className="relative">
<body className={`relative ${inter.variable} font-sans`}>
<div
className={`${inter.variable} font-sans text-default bg-background ${
className={`text-default bg-background ${
// TODO: remove this once proper dark mode exists
process.env.THEME_IS_DARK?.toLowerCase() === "true" ? "dark" : ""
}`}

View File

@ -1,15 +1,13 @@
"use client";
import { useState, useRef, useContext } from "react";
import { FiSearch, FiMessageSquare, FiTool, FiLogOut } from "react-icons/fi";
import { FiLogOut } from "react-icons/fi";
import Link from "next/link";
import { useRouter } from "next/navigation";
import { User } from "@/lib/types";
import { checkUserIsNoAuthUser, logout } from "@/lib/user";
import { BasicSelectable } from "@/components/BasicClickable";
import { Popover } from "./popover/Popover";
import { LOGOUT_DISABLED } from "@/lib/constants";
import { Settings } from "@/app/admin/settings/interfaces";
import { SettingsContext } from "./settings/SettingsProvider";
import { LightSettingsIcon } from "./icons/icons";
import { pageType } from "@/app/chat/sessionSidebar/types";
@ -54,7 +52,22 @@ export function UserDropdown({
onClick={() => setUserInfoVisible(!userInfoVisible)}
className="flex cursor-pointer"
>
<div className="my-auto bg-background-strong ring-2 ring-transparent group-hover:ring-background-300/50 transition-ring duration-150 rounded-lg inline-block flex-none px-2 text-base ">
<div
className="
my-auto
bg-background-strong
ring-2
ring-transparent
group-hover:ring-background-300/50
transition-ring
duration-150
rounded-lg
inline-block
flex-none
px-2
text-base
"
>
{user && user.email ? user.email[0].toUpperCase() : "A"}
</div>
</div>