From e836716acc6cf45a2b1fd23b764314c595f6a475 Mon Sep 17 00:00:00 2001 From: Khalid Ibrahim Date: Tue, 8 Feb 2022 18:26:55 +0800 Subject: [PATCH] fix buy-sell responsive --- .../components/buy-sell/buy-sell-header.jsx | 2 +- .../components/buy-sell/buy-sell-header.scss | 9 ++++ .../src/components/buy-sell/buy-sell-row.jsx | 5 +- .../src/components/buy-sell/buy-sell-row.scss | 51 +++++++++++++++---- .../src/components/buy-sell/search-box.scss | 8 ++- .../components/buy-sell/sort-dropdown.scss | 11 ++-- 6 files changed, 63 insertions(+), 23 deletions(-) diff --git a/packages/p2p/src/components/buy-sell/buy-sell-header.jsx b/packages/p2p/src/components/buy-sell/buy-sell-header.jsx index dd63bbfb3361..a526a07dd3b9 100644 --- a/packages/p2p/src/components/buy-sell/buy-sell-header.jsx +++ b/packages/p2p/src/components/buy-sell/buy-sell-header.jsx @@ -66,7 +66,7 @@ const BuySellHeader = ({ is_visible, table_type, setTableType }) => { className='buy-sell__header-row--filter' icon='IcFilter' onClick={() => buy_sell_store.setIsFilterModalOpen(true)} - size={42} + size={40} /> diff --git a/packages/p2p/src/components/buy-sell/buy-sell-header.scss b/packages/p2p/src/components/buy-sell/buy-sell-header.scss index d6a0f95afc1b..dd48340ecb24 100644 --- a/packages/p2p/src/components/buy-sell/buy-sell-header.scss +++ b/packages/p2p/src/components/buy-sell/buy-sell-header.scss @@ -60,6 +60,9 @@ flex-direction: row; @include mobile { + display: grid; + grid-template-columns: 1fr 50px 50px; + column-gap: 1rem; border-top: 1px solid var(--general-section-1); } @@ -70,6 +73,12 @@ display: flex; margin-left: 0.8rem; padding: 1.3rem; + + @include mobile { + grid-column: 3; + justify-self: center; + margin-right: 2rem; + } } } } diff --git a/packages/p2p/src/components/buy-sell/buy-sell-row.jsx b/packages/p2p/src/components/buy-sell/buy-sell-row.jsx index fad6b95a1657..e501f8bcb77a 100644 --- a/packages/p2p/src/components/buy-sell/buy-sell-row.jsx +++ b/packages/p2p/src/components/buy-sell/buy-sell-row.jsx @@ -79,7 +79,7 @@ const BuySellRow = ({ row: advert }) => { {price_display} {local_currency} - + { /> -
+
{payment_method_names ? payment_method_names.map((payment_method, key) => { return ( @@ -103,6 +103,7 @@ const BuySellRow = ({ row: advert }) => {
{!is_my_advert && (