From 51b1ce1a87397cc8c4ed25607f2f4a2dfb5a80a7 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 16 Jan 2024 17:45:53 +0200 Subject: [PATCH] Fix floating modal content styles --- .../transactions/MobileTransferModal.tsx | 15 +++++++++------ .../transactions/Transactions.module.sass | 7 ++++--- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/components/txHistory/transactions/MobileTransferModal.tsx b/src/components/txHistory/transactions/MobileTransferModal.tsx index 31a3c569..673edc1f 100644 --- a/src/components/txHistory/transactions/MobileTransferModal.tsx +++ b/src/components/txHistory/transactions/MobileTransferModal.tsx @@ -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 @@ -64,11 +65,13 @@ const MobileTransferModal = ({ >
-
- {isRecieved ? '+' : '-'} - {balance} +
+
+ {isRecieved ? '+' : '-'} + {balance} +
+
{totalBalance}
-
{totalBalance}
Sender @@ -91,13 +94,13 @@ const MobileTransferModal = ({
Network - + - {networkName} + {networkName}
diff --git a/src/components/txHistory/transactions/Transactions.module.sass b/src/components/txHistory/transactions/Transactions.module.sass index 92549a64..585d6d1b 100644 --- a/src/components/txHistory/transactions/Transactions.module.sass +++ b/src/components/txHistory/transactions/Transactions.module.sass @@ -71,7 +71,6 @@ width: 100% display: flex justify-content: space-between - gap: $space_mini .GrayLabel color: #888 @@ -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