Skip to content

Commit

Permalink
fix: add auth accounts dropdown prop to mod height
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Feb 21, 2025
1 parent 13a7755 commit 1c36698
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type WalletAuthAccountsProps = {
fetchMrgnlendState: () => void;
processOpts?: ProcessTransactionsClientOpts;
closeOnSwitch?: boolean;
fullHeight?: boolean;
popoverContentAlign?: "start" | "end" | "center";
showAddAccountButton?: boolean;
accountLabels?: Record<string, string>;
Expand All @@ -49,6 +50,7 @@ export const WalletAuthAccounts = ({
selectedAccount,
fetchMrgnlendState,
closeOnSwitch = false,
fullHeight = false,
popoverContentAlign = "center",
showAddAccountButton = true,
processOpts,
Expand Down Expand Up @@ -276,7 +278,8 @@ export const WalletAuthAccounts = ({
</div>
<div
className={cn(
"grid gap-2",
"grid gap-2 max-h-[246px] overflow-y-auto relative",
fullHeight && "max-h-[calc(100vh-340px)]",
isActivatingAccount !== null && "pointer-events-none animate-pulsate"
)}
>
Expand Down
1 change: 1 addition & 0 deletions packages/mrgn-ui/src/components/wallet-v2/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ const Wallet = ({
processOpts={processOpts}
accountLabels={accountLabels}
fetchAccountLabels={fetchAccountLabels}
fullHeight={true}
/>
</div>
)}
Expand Down

0 comments on commit 1c36698

Please sign in to comment.