From eea6839063333f336acb1493ece8d66a397d8995 Mon Sep 17 00:00:00 2001
From: Katty Barroso <51223655+kattylucy@users.noreply.github.com>
Date: Tue, 15 Oct 2024 20:12:27 +0200
Subject: [PATCH] Small fixes (#2500)
* Fix button border
* Add black border back to pool card
* Fix short description spacing to fit elements
* Fixes to issuer section
---
.../src/components/IssuerSection.tsx | 29 +++++++++++++----
.../src/components/PoolCard/index.tsx | 32 +++++++++----------
.../src/pages/Pool/Overview/index.tsx | 2 +-
fabric/src/components/Button/WalletButton.tsx | 13 ++------
4 files changed, 42 insertions(+), 34 deletions(-)
diff --git a/centrifuge-app/src/components/IssuerSection.tsx b/centrifuge-app/src/components/IssuerSection.tsx
index d18150fc25..3342c66756 100644
--- a/centrifuge-app/src/components/IssuerSection.tsx
+++ b/centrifuge-app/src/components/IssuerSection.tsx
@@ -19,7 +19,7 @@ import { formatPercentage } from '../utils/formatting'
import { ExecutiveSummaryDialog } from './Dialogs/ExecutiveSummaryDialog'
import { LabelValueStack } from './LabelValueStack'
import { AnchorPillButton, PillButton } from './PillButton'
-import { RouterTextLink } from './TextLink'
+import { AnchorTextLink, RouterTextLink } from './TextLink'
const SUBTLE_GRAY = '#91969b21'
@@ -58,6 +58,21 @@ const StyledRouterTextLink = styled(RouterTextLink)`
}
`
+const StyledAnchorTextLink = styled(AnchorTextLink)`
+ color: white;
+ font-size: 14px;
+ text-decoration: unset;
+ :active {
+ color: white;
+ }
+ :visited {
+ color: white;
+ }
+ :hover {
+ text-decoration: underline;
+ }
+`
+
export function ReportDetails({ metadata }: IssuerSectionProps) {
const pathname = useLocation().pathname
const report = metadata?.pool?.reports?.[0]
@@ -160,14 +175,14 @@ export function IssuerDetails({ metadata }: IssuerSectionProps) {
-
+
{metadata?.pool?.issuer.name}
-
+
{metadata?.pool?.issuer.description}
{metadata?.pool?.issuer?.categories?.length ? (
-
+
{metadata?.pool?.issuer?.categories.map((category) => (
@@ -270,12 +285,14 @@ export const PoolAnalysis = ({ metadata, inverted }: IssuerSectionProps & { inve
const report = metadata?.pool?.reports?.[0]
// Not sure why some pools have N/A, it should be empty but this is a fix for those pools in the meantime
const isEmpty = report?.author.name === 'N/A'
+
+ console.log(report)
return report?.author?.name || report?.author?.title ? (
isEmpty ? null : (
-
+
Pool analysis
-
+
Reviewer: {report?.author?.name || 'N/A'}
diff --git a/centrifuge-app/src/components/PoolCard/index.tsx b/centrifuge-app/src/components/PoolCard/index.tsx
index f861de872f..a45f0d3b66 100644
--- a/centrifuge-app/src/components/PoolCard/index.tsx
+++ b/centrifuge-app/src/components/PoolCard/index.tsx
@@ -35,14 +35,15 @@ const StyledRouterTextLink = styled(RouterTextLink)`
const StyledCard = styled(Card)`
width: 100%;
max-width: 100%;
- height: 320px;
+ height: 300px;
margin-right: 12px;
margin-bottom: 12px;
padding: 12px;
+ border: 1px solid rgba(207, 207, 207, 0.5);
&:hover {
- border: 1px solid ${({ theme }) => theme.colors.backgroundTertiary};
+ 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);
}
@@ -262,24 +263,21 @@ export function PoolCard({
{tranchesData?.map((tranche) => renderText(`${tranche.minInvestment}`))}
- {metaData?.pool?.issuer?.shortDescription ||
- (isTinlakePool && (
-
-
- {isTinlakePool
- ? tinlakeTranches[tinlakeKey].shortDescription
- : metaData?.pool?.issuer?.shortDescription}
-
-
- ))}
+ {(metaData?.pool?.issuer?.shortDescription || isTinlakePool) && (
+
+
+ {isTinlakePool ? tinlakeTranches[tinlakeKey].shortDescription : metaData?.pool?.issuer?.shortDescription}
+
+
+ )}
+
- Asset type
- {assetClass ?? '-'}
+ Asset type
+ {assetClass ?? '-'}
- Investor type
-
- {' '}
+ Investor type
+
{isTinlakePool ? tinlakeTranches[tinlakeKey].investorType : metaData?.pool?.investorType ?? '-'}
diff --git a/centrifuge-app/src/pages/Pool/Overview/index.tsx b/centrifuge-app/src/pages/Pool/Overview/index.tsx
index 49b124d109..1b9e43283d 100644
--- a/centrifuge-app/src/pages/Pool/Overview/index.tsx
+++ b/centrifuge-app/src/pages/Pool/Overview/index.tsx
@@ -124,7 +124,7 @@ export function PoolDetailOverview() {
)}
}>
theme.colors.backgroundPrimary};
outline: 0;
- border-radius: 40px;
+ border-radius: 4px;
white-space: nowrap;
- & > span {
- border-width: 3;
- border-color: ${({ theme }) => theme.colors.backgroundPrimary};
- :hover {
- border: ${({ theme }) => `3px solid ${theme.colors.borderSecondary}`};
- }
- }
+ border: 3px solid transparent;
`
const IdenticonWrapper = styled(Flex)({