mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Improve loading of images on grid
This commit is contained in:
parent
d8c7970000
commit
33dbb90c72
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue