Skip to content

Commit

Permalink
Fix wallet menu overlap (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiltom authored Apr 30, 2024
1 parent 6580480 commit 151394c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const ConnectWalletButton: FC<
address={address}
dataAttribute={dataAttribute}
className={className}
dropdownClassName="z-[10000000]"
content={
<Menu className="mb-4">
<Link to="/portfolio" className="no-underline">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type WalletIdentityProps = {
startLength?: number;
endLength?: number;
content?: ReactNode;
dropdownClassName?: string;
};

export const WalletIdentity: FC<WalletIdentityProps> = ({
Expand All @@ -35,6 +36,7 @@ export const WalletIdentity: FC<WalletIdentityProps> = ({
dataAttribute,
submenuLabels,
content,
dropdownClassName,
}) => {
if (hideSubmenu) {
return (
Expand All @@ -51,7 +53,7 @@ export const WalletIdentity: FC<WalletIdentityProps> = ({
return (
<Dropdown
className={classNames(styles.dropdown, className)}
dropdownClassName={styles.dropdownMenu}
dropdownClassName={classNames(styles.dropdownMenu, dropdownClassName)}
text={
<AddressBadge
address={address}
Expand Down

0 comments on commit 151394c

Please sign in to comment.