mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-13 02:00:10 +01:00
[FIX] Make UserMenu appear on mobile (#991)
fix usermenu being hidden on mobile
This commit is contained in:
parent
49f30e051c
commit
df054eb8d7
@ -54,7 +54,7 @@ export default function UserButton() {
|
||||
|
||||
if (mode === null) return null;
|
||||
return (
|
||||
<div className="absolute top-9 right-10 w-fit h-fit z-99">
|
||||
<div className="absolute top-3 right-4 md:top-9 md:right-10 w-fit h-fit z-99">
|
||||
<button
|
||||
ref={buttonRef}
|
||||
onClick={() => setShowMenu(!showMenu)}
|
||||
|
@ -1,12 +1,9 @@
|
||||
import { isMobile } from "react-device-detect";
|
||||
import UserButton from "./UserButton";
|
||||
|
||||
export default function UserMenu({ children }) {
|
||||
if (isMobile) return <>{children}</>;
|
||||
return (
|
||||
<div className="w-auto h-auto">
|
||||
<UserButton />
|
||||
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user