File tree Expand file tree Collapse file tree 2 files changed +25
-21
lines changed
app-catalog/src/components/charts Expand file tree Collapse file tree 2 files changed +25
-21
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,16 @@ export default function ChartDetails() {
80
80
name : 'Name' ,
81
81
value : (
82
82
< Box display = "flex" alignItems = "center" >
83
- < Box mr = { 1 } >
84
- < img
85
- src = { `https://artifacthub.io/image/${ chart . logo_image_id } ` }
86
- width = "25"
87
- height = "25"
88
- alt = { chart . name }
89
- />
90
- </ Box >
83
+ { chart . logo_image_id && (
84
+ < Box mr = { 1 } >
85
+ < img
86
+ src = { `https://artifacthub.io/image/${ chart . logo_image_id } ` }
87
+ width = "25"
88
+ height = "25"
89
+ alt = { chart . name }
90
+ />
91
+ </ Box >
92
+ ) }
91
93
< Box > { chart . name } </ Box >
92
94
</ Box >
93
95
) ,
Original file line number Diff line number Diff line change @@ -220,22 +220,24 @@ export function ChartsList({ fetchCharts = fetchChartsFromArtifact }) {
220
220
justifyContent = "space-between"
221
221
marginTop = "15px"
222
222
>
223
- < CardMedia
224
- image = { `https://artifacthub.io/image/${ chart . logo_image_id } ` }
225
- alt = { `${ chart . name } logo` }
226
- sx = { {
227
- width : '60px' ,
228
- height : '60px' ,
229
- margin : '1rem' ,
230
- alignSelf : 'flex-start' ,
231
- objectFit : 'contain' ,
232
- } }
233
- component = "img"
234
- />
223
+ { chart . logo_image_id && (
224
+ < CardMedia
225
+ image = { `https://artifacthub.io/image/${ chart . logo_image_id } ` }
226
+ alt = { `${ chart . name } logo` }
227
+ sx = { {
228
+ width : '60px' ,
229
+ height : '60px' ,
230
+ margin : '1rem' ,
231
+ alignSelf : 'flex-start' ,
232
+ objectFit : 'contain' ,
233
+ } }
234
+ component = "img"
235
+ />
236
+ ) }
235
237
< Box
236
238
display = "flex"
237
239
alignItems = "center"
238
- justifyContent = "space-around "
240
+ marginLeft = "auto "
239
241
marginRight = "10px"
240
242
>
241
243
{ ( chart . cncf || chart . repository . cncf ) && (
You can’t perform that action at this time.
0 commit comments