From 883150cb5e8e980b7501982ab16bd5187d1bdfc5 Mon Sep 17 00:00:00 2001 From: kate-deriv Date: Thu, 19 Dec 2024 10:29:18 +0300 Subject: [PATCH 1/2] chore: remove overflow from parent containers --- .../DraggableList/draggable-list.scss | 1 - .../Containers/Trade/trade-types-content.tsx | 14 ++++++++--- .../AppV2/Containers/Trade/trade-types.tsx | 25 +++++++++++-------- .../src/AppV2/Containers/Trade/trade.scss | 8 +++++- 4 files changed, 33 insertions(+), 15 deletions(-) diff --git a/packages/trader/src/AppV2/Components/DraggableList/draggable-list.scss b/packages/trader/src/AppV2/Components/DraggableList/draggable-list.scss index df2347d362fe..8c11ccd07ec0 100644 --- a/packages/trader/src/AppV2/Components/DraggableList/draggable-list.scss +++ b/packages/trader/src/AppV2/Components/DraggableList/draggable-list.scss @@ -54,7 +54,6 @@ display: flex; flex-direction: column; padding: var(--core-spacing-500) 0; - overflow: auto; } &__item { diff --git a/packages/trader/src/AppV2/Containers/Trade/trade-types-content.tsx b/packages/trader/src/AppV2/Containers/Trade/trade-types-content.tsx index eefd538c35f8..c30a61475692 100644 --- a/packages/trader/src/AppV2/Containers/Trade/trade-types-content.tsx +++ b/packages/trader/src/AppV2/Containers/Trade/trade-types-content.tsx @@ -1,8 +1,12 @@ import React from 'react'; -import { Button, Text, ActionSheet } from '@deriv-com/quill-ui'; +import clsx from 'clsx'; + +import { Localize } from '@deriv/translations'; +import { ActionSheet, Button, Text } from '@deriv-com/quill-ui'; + import { DraggableList } from 'AppV2/Components/DraggableList'; import { TradeTypeList } from 'AppV2/Components/TradeTypeList'; -import { Localize } from '@deriv/translations'; + import { TItem, TResultItem } from './trade-types'; type TTradeTypesContent = { @@ -52,7 +56,11 @@ const TradeTypesContent = ({ - + {is_editing ? ( )} Date: Thu, 19 Dec 2024 10:57:13 +0300 Subject: [PATCH 2/2] refactor: left 1 parent with overflow y --- .../src/AppV2/Containers/Trade/trade-types-content.tsx | 6 +----- packages/trader/src/AppV2/Containers/Trade/trade.scss | 9 +++++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/trader/src/AppV2/Containers/Trade/trade-types-content.tsx b/packages/trader/src/AppV2/Containers/Trade/trade-types-content.tsx index c30a61475692..5e465cd5c3eb 100644 --- a/packages/trader/src/AppV2/Containers/Trade/trade-types-content.tsx +++ b/packages/trader/src/AppV2/Containers/Trade/trade-types-content.tsx @@ -56,11 +56,7 @@ const TradeTypesContent = ({ - + {is_editing ? (