From 0e7033459f83af9fc8f6bfdb1bc06e3f646d1bcd Mon Sep 17 00:00:00 2001 From: Vincent T Date: Fri, 6 Dec 2024 17:08:34 -0500 Subject: [PATCH] app-catalog: fixes and updates cards styles Signed-off-by: Vincent T --- app-catalog/src/components/charts/List.tsx | 287 ++++++++++----------- 1 file changed, 138 insertions(+), 149 deletions(-) diff --git a/app-catalog/src/components/charts/List.tsx b/app-catalog/src/components/charts/List.tsx index 5afa66e..14c9429 100644 --- a/app-catalog/src/components/charts/List.tsx +++ b/app-catalog/src/components/charts/List.tsx @@ -94,7 +94,7 @@ export function ChartsList({ fetchCharts = fetchChartsFromArtifact }) { function Search() { return ( setEditorOpen(open)} /> } actions={[, ]} /> - + {!charts ? ( @@ -165,181 +165,170 @@ export function ChartsList({ fetchCharts = fetchChartsFromArtifact }) { ) : charts.length === 0 ? ( - {`No charts found for ${ - search ? `search term: ${search}` : `category: ${chartCategory.title}` - }`} + {`No charts found for ${search ? `search term: ${search}` : `category: ${chartCategory.title}` + }`} ) : ( {charts.map(chart => { return ( - - + + + - - - {(chart.cncf || chart.repository.cncf) && ( - - - - )} - {(chart.official || chart.repository.official) && ( - - - - )} - {chart.repository.verified_publisher && ( - - - - )} - + {(chart.cncf || chart.repository.cncf) && ( + + + + )} + {(chart.official || chart.repository.official) && ( + + + + )} + {chart.repository.verified_publisher && ( + + + + )} - + + + + + + {chart.name} + + + + + + v{chart.version} - - - - {chart.name} - - + + {chart?.repository?.name || ''} - - v{chart.version} - - - {chart?.repository?.name || ''} + + + + + {chart?.description?.slice(0, 100)} + {chart?.description?.length > 100 && ( + + - - - - - - {chart?.description?.slice(0, 100)} - {chart?.description?.length > 100 && ( - - - - )} - - - - + + + + - - Learn More - - - - + Install + + + Learn More + + + ); })}