Skip to content

Commit

Permalink
Fix floating modal content styles
Browse files Browse the repository at this point in the history
  • Loading branch information
samchuk-vlad committed Jan 16, 2024
1 parent 58338a5 commit 51b1ce1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
15 changes: 9 additions & 6 deletions src/components/txHistory/transactions/MobileTransferModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { AccountPreview, AvatarOrSkeleton } from '@/components/table/utils'
import { CopyAddress } from '../../homePage/address-views/utils/index'
import { toShortAddress } from '../../utils/index'
import Link from 'next/link'
import clsx from 'clsx'

type TransferInfo = {
icon: string
Expand Down Expand Up @@ -64,11 +65,13 @@ const MobileTransferModal = ({
>
<div className={styles.ModalContent}>
<div className={styles.TxContent}>
<div className={styles[`Tokens-${isRecieved ? 'Recieved' : 'Send'}`]}>
{isRecieved ? '+' : '-'}
{balance}
<div>
<div className={styles[`Tokens-${isRecieved ? 'Recieved' : 'Send'}`]}>
{isRecieved ? '+' : '-'}
{balance}
</div>
<div className={clsx(styles.BalanceInDollar, 'mt-1')}>{totalBalance}</div>
</div>
<div className={styles.BalanceInDollar}>{totalBalance}</div>
<div className={styles.SenderBlock}>
<div>
<span className={styles.GrayLabel}>Sender</span>
Expand All @@ -91,13 +94,13 @@ const MobileTransferModal = ({
</div>
<div>
<span className={styles.GrayLabel}>Network</span>
<span>
<span className='d-flex align-items-center'>
<AvatarOrSkeleton
icon={icon}
size={24}
className='align-items-start flex-shrink-none'
/>
<span className='ml-2 font-weight-semibold'>{networkName}</span>
<span className='ml-2 font-weight-semibold text-black'>{networkName}</span>
</span>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
width: 100%
display: flex
justify-content: space-between
gap: $space_mini

.GrayLabel
color: #888
Expand Down Expand Up @@ -100,16 +99,18 @@

.BalanceInDollar
font-size: $font_normal
color: #64748B
line-height: 25.144px

span
color: #64748B

.Date
color: #64748B
line-height: 25.144px
margin-top: $space_tiny

.EllipsisPreview
max-width: 168px
max-width: 168px
display: block
white-space: nowrap
overflow: hidden
Expand Down

0 comments on commit 51b1ce1

Please sign in to comment.