Improve loading of images on grid

This commit is contained in:
Jackson Harper
2023-08-01 18:56:19 +08:00
parent d8c7970000
commit 33dbb90c72

View File

@ -29,7 +29,6 @@ import {
import { CardMenu } from '../CardMenu'
import { DotsThree } from 'phosphor-react'
import { isTouchScreenDevice } from '../../../lib/deviceType'
import objectToHash from '../../../lib/highlights/objectToHash'
dayjs.extend(relativeTime)
@ -200,9 +199,11 @@ const GridImage = (props: GridImageProps): JSX.Element => {
) : (
<CoverImage
src={props.src}
alt={props.title}
width="100%"
height={100}
css={{
bg: '$thBackground',
}}
onError={(e) => {
setDisplayFallback(true)
}}