mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-09 20:39:29 +02:00
Fix user dropdown font (#2007)
This commit is contained in:
parent
d6d391d244
commit
1654378850
@ -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" : ""
|
||||
}`}
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user