Skip to content

Commit

Permalink
[web] Cosmetic logout button
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjooiopa committed May 2, 2024
1 parent f9d7ae0 commit 5c3a875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/LogoutButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const LogoutButton = () => {
}

return (
<button className="p-2" onClick={handleLogout}>
<button className="p-2 w-full text-left" onClick={handleLogout}>
Logout
</button>
)
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/MenuDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const MenuDropdown = () => {
leaveTo="transform opacity-0 scale-95"
>
<Menu.Items className="absolute right-0 mt-3 origin-top-right" static>
<div className="p-1 rounded border border-gray-700">
<div className="p-1 w-[128px] rounded border border-gray-700 hover:bg-gray-600">
<Menu.Item>{({ active }) => <LogoutButton />}</Menu.Item>
</div>
</Menu.Items>
Expand Down

0 comments on commit 5c3a875

Please sign in to comment.