From 016d7ac986c5ea3be554b54ec545ebd9da31b543 Mon Sep 17 00:00:00 2001 From: Nada Date: Thu, 12 Sep 2024 10:43:03 +0400 Subject: [PATCH 1/2] fix: center align orders tab --- .../components/OrdersDateSelection/OrdersDateSelection.scss | 5 +++++ .../screens/Orders/OrdersTableHeader/OrdersTableHeader.scss | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/orders/components/OrdersDateSelection/OrdersDateSelection.scss b/src/pages/orders/components/OrdersDateSelection/OrdersDateSelection.scss index 21b1d335..a2075d49 100644 --- a/src/pages/orders/components/OrdersDateSelection/OrdersDateSelection.scss +++ b/src/pages/orders/components/OrdersDateSelection/OrdersDateSelection.scss @@ -8,6 +8,11 @@ @include mobile-or-tablet-screen { margin-top: 1.6rem; + width: 100%; + + & .deriv-input__container { + width: 100%; + } } &__input { diff --git a/src/pages/orders/screens/Orders/OrdersTableHeader/OrdersTableHeader.scss b/src/pages/orders/screens/Orders/OrdersTableHeader/OrdersTableHeader.scss index 670088d9..2fccb79d 100644 --- a/src/pages/orders/screens/Orders/OrdersTableHeader/OrdersTableHeader.scss +++ b/src/pages/orders/screens/Orders/OrdersTableHeader/OrdersTableHeader.scss @@ -8,7 +8,6 @@ margin: 1.6rem; justify-content: center; flex-direction: column; - align-items: flex-start; } &__tabs { From bd7b3df4e445af9c5533d230561a7c2fae541284 Mon Sep 17 00:00:00 2001 From: Nada Date: Fri, 13 Sep 2024 16:18:02 +0400 Subject: [PATCH 2/2] fix: button text issue fixed --- .../AdvertsTableRow/AdvertsTableRow.scss | 6 +- .../AdvertsTableRow/AdvertsTableRow.tsx | 163 ++++++++++-------- .../ProfileContent/ProfileContent.scss | 4 + 3 files changed, 93 insertions(+), 80 deletions(-) diff --git a/src/components/AdvertsTableRow/AdvertsTableRow.scss b/src/components/AdvertsTableRow/AdvertsTableRow.scss index 4ce39a25..4b307301 100644 --- a/src/components/AdvertsTableRow/AdvertsTableRow.scss +++ b/src/components/AdvertsTableRow/AdvertsTableRow.scss @@ -10,10 +10,8 @@ } &--advertiser { - grid-template-columns: repeat(4, 1fr); - - @include mobile-or-tablet-screen { - grid-template-columns: repeat(2, 1fr); + @include desktop { + grid-template-columns: repeat(4, 1fr); } } diff --git a/src/components/AdvertsTableRow/AdvertsTableRow.tsx b/src/components/AdvertsTableRow/AdvertsTableRow.tsx index 0ff712dd..9c15eb7c 100644 --- a/src/components/AdvertsTableRow/AdvertsTableRow.tsx +++ b/src/components/AdvertsTableRow/AdvertsTableRow.tsx @@ -9,7 +9,7 @@ import { api } from '@/hooks'; import { useIsAdvertiser, useIsAdvertiserBarred, useModalManager, usePoiPoaStatus } from '@/hooks/custom-hooks'; import { useAdvertiserInfoState } from '@/providers/AdvertiserInfoStateProvider'; import { generateEffectiveRate, getCurrentRoute, getEligibilityErrorMessage } from '@/utils'; -import { LabelPairedChevronRightMdRegularIcon } from '@deriv/quill-icons'; +import { LabelPairedChevronRightMdBoldIcon } from '@deriv/quill-icons'; import { Localize, useTranslations } from '@deriv-com/translations'; import { Button, Text, useDevice } from '@deriv-com/ui'; import './AdvertsTableRow.scss'; @@ -100,7 +100,7 @@ const AdvertsTableRow = memo((props: TAdvertsTableRowRenderer) => { {isBuySellPage && (
{ )}
+ + {!isDesktop && isBuySellPage && ( + + )} )} - - {!isDesktop && ( - - - - )} - - - {!isDesktop && localize('Limits:')} {minOrderAmountLimitDisplay}- - {maxOrderAmountLimitDisplay} {accountCurrency} - - - {displayEffectiveRate} {localCurrency} - - -
- {paymentMethodNames ? ( - paymentMethodNames.map((method: string, idx: number) => ( - - )) - ) : ( - + + + {!isDesktop && ( + + + )} -
-
-
- {!isMyAdvert && ( -
- {!isDesktop && isBuySellPage && ( - - )} - {isEligible === 0 ? ( - - ) : ( - + {isEligible === 0 ? ( + + ) : ( + + )} +
)} - - )} + + {isModalOpenFor('BuySellForm') && (