center portrait thumbnails

This commit is contained in:
Blake Blackshear 2022-05-14 06:37:06 -05:00
parent 16057cdef7
commit 4e8ce28948

View File

@ -388,7 +388,7 @@ export default function Events({ path, ...props }) {
onClick={() => (viewEvent === event.id ? setViewEvent(null) : setViewEvent(event.id))} onClick={() => (viewEvent === event.id ? setViewEvent(null) : setViewEvent(event.id))}
> >
<div <div
className="relative rounded-l flex-initial min-w-[125px] h-[125px] bg-contain" className="relative rounded-l flex-initial min-w-[125px] h-[125px] bg-contain bg-no-repeat bg-center"
style={{ style={{
'background-image': `url(${apiHost}/api/events/${event.id}/thumbnail.jpg)`, 'background-image': `url(${apiHost}/api/events/${event.id}/thumbnail.jpg)`,
}} }}