Skip to content

Commit

Permalink
fix(tangle-dapp): Fix payout modal overflowing (#2461)
Browse files Browse the repository at this point in the history
  • Loading branch information
AtelyPham authored Jul 27, 2024
1 parent 6aad0bb commit 15ea1b2
Showing 1 changed file with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
ModalHeader,
Typography,
} from '@webb-tools/webb-ui-components';
import { ScrollArea } from '@webb-tools/webb-ui-components/components/ScrollArea';
import { WEBB_TANGLE_DOCS_STAKING_URL } from '@webb-tools/webb-ui-components/constants';
import { type FC, useCallback, useMemo } from 'react';

Expand Down Expand Up @@ -98,20 +99,22 @@ const PayoutAllTxContainer: FC<PayoutAllTxContainerProps> = ({
/>
</InputField.Root>

<div className="flex flex-col gap-2">
{allValidators.map((validator) => (
<InputField.Root key={validator}>
<InputField.Input
title="Validator"
isAddressType={true}
addressTheme="substrate"
value={validator}
type="text"
readOnly
/>
</InputField.Root>
))}
</div>
<ScrollArea className="flex-1 max-h-64">
<div className="space-y-2">
{allValidators.map((validator) => (
<InputField.Root key={validator}>
<InputField.Input
title="Validator"
isAddressType={true}
addressTheme="substrate"
value={validator}
type="text"
readOnly
/>
</InputField.Root>
))}
</div>
</ScrollArea>

{/* Eras */}
{eraRange.length > 0 && (
Expand Down

0 comments on commit 15ea1b2

Please sign in to comment.