Skip to content

Commit ab25e39

Browse files
committed
fix(ui): remove src-set from lqip
1 parent ba69152 commit ab25e39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/components/LazyImage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Props {
1212

1313
const hideFn = (ev: React.SyntheticEvent<HTMLElement, Event>) => {ev.currentTarget.style.display = 'none'}
1414

15-
export const LazyImage: FC<ImgHTMLAttributes<HTMLImageElement> & Props> = ({thumbhash, ...attrs }) => {
15+
export const LazyImage: FC<ImgHTMLAttributes<HTMLImageElement> & Props> = ({thumbhash, srcSet, ...attrs }) => {
1616
const [loaded, setLoaded] = useState(false)
1717
const [data, setData] = useState('')
1818
const [width, setWidth] = useState('0px')
@@ -54,6 +54,7 @@ export const LazyImage: FC<ImgHTMLAttributes<HTMLImageElement> & Props> = ({thum
5454
<img
5555
ref={imgRef}
5656
{...attrs}
57+
srcSet={srcSet}
5758
loading="lazy"
5859
className={classNames(styles.source, loaded ? styles.loaded : null)}
5960
onLoad={() => setLoaded(true)}

0 commit comments

Comments
 (0)