File tree Expand file tree Collapse file tree 1 file changed +14
-25
lines changed
Expand file tree Collapse file tree 1 file changed +14
-25
lines changed Original file line number Diff line number Diff line change @@ -301,31 +301,20 @@ export default function StaticMarkdownPage({
301301 >
302302 < div className = 'flex flex-row pl-2 mr-2' >
303303 { ( frontmatter . authors || [ ] ) . map (
304- ( author : Author , index : number ) => {
305- const sizeClass =
306- frontmatter . authors . length > 2
307- ? 'h-8 w-8'
308- : 'h-11 w-11' ;
309-
310- return (
311- < div
312- key = { index }
313- className = { `
314- bg-slate-50
315- rounded-full
316- -ml-3
317- bg-cover
318- bg-center
319- border-2
320- border-white
321- ${ sizeClass } ` }
322- style = { {
323- backgroundImage : `url(${ author . photo } )` ,
324- zIndex : 10 - index ,
325- } }
326- />
327- ) ;
328- } ,
304+ ( author : Author , index : number ) => (
305+ < div
306+ key = { index }
307+ className = { `bg-slate-50 rounded-full -ml-3 bg-cover bg-center border-2 border-white ${
308+ frontmatter . authors . length > 2
309+ ? 'h-8 w-8'
310+ : 'h-11 w-11'
311+ } `}
312+ style = { {
313+ backgroundImage : `url(${ author . photo } )` ,
314+ zIndex : 10 - index ,
315+ } }
316+ />
317+ ) ,
329318 ) }
330319 </ div >
331320
You can’t perform that action at this time.
0 commit comments