Skip to content

Commit

Permalink
fix(frontend): fix absolute div stretching to cover other stuff (#526)
Browse files Browse the repository at this point in the history
Co-authored-by: luzzifoss <fedeluzzi00@gmail.com>
  • Loading branch information
luzzif and luzzifoss committed Nov 29, 2023
1 parent 1785d49 commit b1e5946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/frontend/src/components/connect-wallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const ConnectWallet = ({
window.removeEventListener("mousedown", handleMouseDown);
};
}, []);

const handleNetworksPopoverOpen = useCallback(() => {
setNetworksPopoverOpen(true);
}, []);
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/ui/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const Navbar = ({
)}
</div>
</div>
<nav className="absolute w-full hidden md:flex justify-center space-x-8">
<nav className="absolute hidden md:flex left-1/2 transform -translate-x-1/2 justify-center space-x-8">
{links.map((link) => {
const additionalProps = link.external
? {
Expand Down

0 comments on commit b1e5946

Please sign in to comment.