From ba48e5ab50bd55e3892a7f54f3fcb1027fda47e0 Mon Sep 17 00:00:00 2001 From: katty barroso Date: Wed, 23 Oct 2024 12:56:12 +0200 Subject: [PATCH] Fix landing page margins --- .../src/components/LayoutBase/styles.tsx | 2 -- .../src/components/PoolCard/index.tsx | 12 --------- centrifuge-app/src/components/PoolList.tsx | 27 ++++++------------- 3 files changed, 8 insertions(+), 33 deletions(-) diff --git a/centrifuge-app/src/components/LayoutBase/styles.tsx b/centrifuge-app/src/components/LayoutBase/styles.tsx index e499df934f..ee62464dbe 100644 --- a/centrifuge-app/src/components/LayoutBase/styles.tsx +++ b/centrifuge-app/src/components/LayoutBase/styles.tsx @@ -147,7 +147,6 @@ export const WalletInner = styled(Stack)` @media (min-width: ${({ theme }) => theme.breakpoints[BREAK_POINT_COLUMNS]}) { justify-content: flex-end; height: 50px; - margin-right: 30px; margin-top: 15px; } ` @@ -200,7 +199,6 @@ export const ContentWrapper = styled.div` @media (min-width: ${({ theme }) => theme.breakpoints['M']}) and (max-width: ${({ theme }) => theme.breakpoints['L']}) { margin-left: 7vw; - width: calc(100% - 7vw); margin-top: 10px; } diff --git a/centrifuge-app/src/components/PoolCard/index.tsx b/centrifuge-app/src/components/PoolCard/index.tsx index 22b91605a9..0f7c6b0c64 100644 --- a/centrifuge-app/src/components/PoolCard/index.tsx +++ b/centrifuge-app/src/components/PoolCard/index.tsx @@ -34,11 +34,7 @@ const StyledRouterTextLink = styled(RouterTextLink)` text-decoration: none; ` const StyledCard = styled(Card)` - width: 100%; - max-width: 100%; height: 320px; - margin-right: 12px; - margin-bottom: 12px; padding: 12px; border: 1px solid rgba(207, 207, 207, 0.5); @@ -46,14 +42,6 @@ const StyledCard = styled(Card)` border: 1px solid ${({ theme }) => theme.colors.textPrimary}; box-shadow: 0px 20px 24px -4px rgba(16, 24, 40, 0.08), 0px 8px 8px -4px rgba(16, 24, 40, 0.03); } - - @media (min-width: ${({ theme }) => theme.breakpoints['M']}) { - width: auto; - } - - @media (min-width: ${({ theme }) => theme.breakpoints['XL']}) { - width: auto; - } ` const StyledText = styled(Text)` diff --git a/centrifuge-app/src/components/PoolList.tsx b/centrifuge-app/src/components/PoolList.tsx index 5113ecced6..fd9d005d9f 100644 --- a/centrifuge-app/src/components/PoolList.tsx +++ b/centrifuge-app/src/components/PoolList.tsx @@ -1,6 +1,6 @@ import Centrifuge, { Pool, PoolMetadata } from '@centrifuge/centrifuge-js' import { useCentrifuge } from '@centrifuge/centrifuge-react' -import { Box, IconChevronRight, Shelf, Stack, Text } from '@centrifuge/fabric' +import { Box, Grid, IconChevronRight, Shelf, Stack, Text } from '@centrifuge/fabric' import * as React from 'react' import { useLocation } from 'react-router' import styled from 'styled-components' @@ -82,7 +82,7 @@ export function PoolList() { - + {metadataIsLoading ? Array(6) .fill(true) @@ -92,21 +92,16 @@ export function PoolList() { )) : filteredPools.map((pool) => ( - + ))} - + {!metadataIsLoading && archivedPools.length > 0 && ( <> - + - + {pools.map((pool) => ( - + ))} - + ) }