Skip to content

Commit

Permalink
[FIX] Make UserMenu appear on mobile (#991)
Browse files Browse the repository at this point in the history
fix usermenu being hidden on mobile
  • Loading branch information
shatfield4 authored Mar 29, 2024
1 parent 49f30e0 commit df054eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/UserMenu/UserButton/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/components/UserMenu/index.jsx
Original file line number Diff line number Diff line change
@@ -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>
);
Expand Down

0 comments on commit df054eb

Please sign in to comment.