Skip to content

Commit

Permalink
Merge pull request #383 from pendulum-chain/380-make-the-form-size-of…
Browse files Browse the repository at this point in the history
…-one-element

fix size of swap to 384px
  • Loading branch information
Sharqiewicz authored Jan 16, 2025
2 parents cc5da6d + 76e39eb commit ab1cfb0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/pages/swap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import Big from 'big.js';
import { useEffect, useMemo, useRef, useState, useCallback } from 'preact/hooks';
import { ApiPromise } from '@polkadot/api';
Expand Down Expand Up @@ -61,8 +60,6 @@ import { TrustedBy } from '../../components/TrustedBy';
import { WhyVortex } from '../../components/WhyVortex';
import { usePolkadotWalletState } from '../../contexts/polkadotWallet';



export const SwapPage = () => {
const formRef = useRef<HTMLDivElement | null>(null);
const feeComparisonRef = useRef<FeeComparisonRef>(null);
Expand Down Expand Up @@ -378,10 +375,7 @@ export const SwapPage = () => {
<main ref={formRef}>
<SignInModal signingPending={signingPending} closeModal={handleCancel} handleSignIn={handleSign} />
<SigningBox step={offrampSigningPhase} />
<form
className="max-w-2xl px-4 py-4 mx-4 my-8 rounded-lg shadow-custom md:mx-auto md:w-2/3 lg:w-3/5 xl:w-1/2"
onSubmit={onSwapConfirm}
>
<form className="px-4 py-4 mx-4 my-8 rounded-lg shadow-custom md:mx-auto md:w-96" onSubmit={onSwapConfirm}>
<h1 className="mt-2 mb-5 text-3xl font-bold text-center text-blue-700">Sell Crypto</h1>
<LabeledInput label="You sell" htmlFor="fromAmount" Input={WithdrawNumericInput} />
<div className="my-10" />
Expand Down

0 comments on commit ab1cfb0

Please sign in to comment.