File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,23 +92,30 @@ export const AlbumDetails = ({
9292 { release . title }
9393 </ a >
9494 </ SheetTitle >
95- < SheetDescription className = "flex flex-wrap gap-x-2.5 gap-y-1.5" >
96- { release . year } •{ ' ' }
95+ < SheetDescription className = "flex flex-wrap gap-x-2.5 gap-y-1.5 leading-6" >
96+ { release . year }
97+ { ' • ' }
9798 { release . formats
9899 . filter ( ( format ) => format . name !== 'All Media' )
99100 . map ( ( { qty, name } ) => ( parseInt ( qty ) > 1 ? `${ qty } x ${ name } ` : name ) )
100101 . join ( ', ' ) } { ' ' }
101102 { /* text = vinyl color */ }
102- { release . formats
103- . filter ( ( format ) => format . name !== 'All Media' )
104- . map (
105- ( { text } ) =>
106- text && (
107- < Badge variant = "secondary" className = "bg-chart-1" >
108- { text }
109- </ Badge >
110- )
111- ) }
103+ < span className = "flex flex-wrap gap-1.5" >
104+ { release . formats
105+ . filter ( ( format ) => format . name !== 'All Media' )
106+ . map (
107+ ( { text } ) =>
108+ text && (
109+ < Badge
110+ variant = "secondary"
111+ className = "bg-chart-1"
112+ key = { `${ release . id } -${ text } ` }
113+ >
114+ { text }
115+ </ Badge >
116+ )
117+ ) }
118+ </ span >
112119 </ SheetDescription >
113120 < SheetDescription >
114121 { `${ release . genres . join ( ', ' ) } ${ release . styles . length ? ' / ' : '' } ${ release . styles . join ( ', ' ) } ` }
You can’t perform that action at this time.
0 commit comments