From 8fd95b37d20e2e3481271af379991e5530c25052 Mon Sep 17 00:00:00 2001 From: Yan Zhylavy Date: Mon, 2 Dec 2024 10:27:33 +0200 Subject: [PATCH] Add horizontal scroll for new-companies block at 1200px-1511px screen width --- FrontEnd/src/pages/LandingPage/Companies/Companies.jsx | 8 ++++---- .../src/pages/LandingPage/Companies/Companies.module.css | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/FrontEnd/src/pages/LandingPage/Companies/Companies.jsx b/FrontEnd/src/pages/LandingPage/Companies/Companies.jsx index af8d6e44..c73f5c30 100644 --- a/FrontEnd/src/pages/LandingPage/Companies/Companies.jsx +++ b/FrontEnd/src/pages/LandingPage/Companies/Companies.jsx @@ -41,11 +41,11 @@ const MainCompanies = ({ isAuthorized }) => { } }, [newMembers, companylist, searchResults]); - const companyDataList = windowWidth >= 1200 && windowWidth < 1512 - ? searchResults.slice(0, 3) - : searchResults; + const companyDataList = searchResults; const linkText = windowWidth >= 768 ? 'Всі підприємства' : 'Всі'; + const antdGutter = windowWidth >= 1200 ? [0, 24] : [0, 24]; + const antdWrap = windowWidth < 1200; return (
@@ -63,7 +63,7 @@ const MainCompanies = ({ isAuthorized }) => {
- + {companyDataList.map((result, resultIndex) => (