Skip to content

Commit

Permalink
Prevent layout shift in Swap UI
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed May 9, 2024
1 parent 6b70424 commit 0cbe497
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,26 +129,26 @@ export const SwapInputContainer = () => {
</div>
<BridgeAmountContainer>
<SwapFromTokenSelector />
<div className="flex flex-wrap">
<div className="flex flex-col">
<AmountInput
inputRef={inputRef}
showValue={showValue}
handleFromValueChange={handleFromValueChange}
/>
{hasMounted && isConnected && (
<>
<div className="flex">
{hasMounted && isConnected && (
<label htmlFor="inputRow" className={labelClassName}>
<span className="text-zinc-500 dark:text-zinc-400">
Available:{' '}
</span>
{formattedBalance ?? '0.0'}
</label>
<MaxButton
onClick={onMaxBalance}
isHidden={!isConnected || !balance || isInputMax}
/>
</>
)}
)}
<MaxButton
onClick={onMaxBalance}
isHidden={!isConnected || !balance || isInputMax}
/>
</div>
</div>
</BridgeAmountContainer>
</BridgeSectionContainer>
Expand Down

0 comments on commit 0cbe497

Please sign in to comment.