Skip to content

Commit

Permalink
[WALL] [Fix] Rostislav / WALL-3345 / Align transfer tab component siz…
Browse files Browse the repository at this point in the history
…e with Figma (#13124)

* fix: align w figma

* refactor: simplify css

* refactor: 3 lines support

* fix: a different way via min-height
  • Loading branch information
rostislav-deriv authored Jan 25, 2024
1 parent 9602efd commit 5a0214d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
}

&__input-container {
height: 3rem;
position: relative;
flex-grow: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
padding: 0.8rem;

@include mobile {
min-height: 9rem;
grid-template-columns: 60% 40%;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
display: flex;
flex-direction: column;
flex: 1;
gap: 0.4rem;
gap: 0.2rem;

@include mobile {
gap: 0.4rem;
}
}

&__header {
Expand All @@ -27,6 +31,12 @@
}
}

&__select-account-cta {
@include mobile {
padding: 0.5rem 0;
}
}

&__icon-dropdown {
margin-left: 1rem;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ const TransferFormDropdown: React.FC<TProps> = ({ fieldName, mobileAccountsListR
{selectedAccount ? (
<TransferFormAccountCard account={selectedAccount} activeWallet={activeWallet} type='input' />
) : (
<WalletText size='sm' weight='bold'>
Select a trading account or a Wallet
</WalletText>
<div className='wallets-transfer-form-dropdown__select-account-cta'>
<WalletText size='sm' weight='bold'>
Select a trading account or a Wallet
</WalletText>
</div>
)}
</div>

Expand Down

1 comment on commit 5a0214d

@vercel
Copy link

@vercel vercel bot commented on 5a0214d Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

binary.sx
deriv-app.vercel.app
deriv-app-git-master.binary.sx
deriv-app.binary.sx

Please sign in to comment.