diff --git a/sdk/dapp-kit/src/components/AccountDropdownMenu.css.ts b/sdk/dapp-kit/src/components/AccountDropdownMenu.css.ts index ef0b38e5e9f..54b2ca54071 100644 --- a/sdk/dapp-kit/src/components/AccountDropdownMenu.css.ts +++ b/sdk/dapp-kit/src/components/AccountDropdownMenu.css.ts @@ -18,7 +18,7 @@ export const menuContent = style({ display: 'flex', flexDirection: 'column', width: 180, - maxHeight: 200, + maxHeight: 300, marginTop: 4, padding: 8, gap: 8, @@ -26,8 +26,15 @@ export const menuContent = style({ backgroundColor: themeVars.backgroundColors.dropdownMenu, }); +export const scrollableContent = style({ + overflowY: 'auto', + maxHeight: 300, + flexGrow: 1, +}); + export const menuItem = style({ padding: 8, + height: 40, userSelect: 'none', outline: 'none', display: 'flex', diff --git a/sdk/dapp-kit/src/components/AccountDropdownMenu.tsx b/sdk/dapp-kit/src/components/AccountDropdownMenu.tsx index cb602d9ebe1..9981b316814 100644 --- a/sdk/dapp-kit/src/components/AccountDropdownMenu.tsx +++ b/sdk/dapp-kit/src/components/AccountDropdownMenu.tsx @@ -41,13 +41,15 @@ export function AccountDropdownMenu({ currentAccount, size = 'lg' }: AccountDrop - {accounts.map((account) => ( - - ))} +
+ {accounts.map((account) => ( + + ))} +