diff --git a/ui/component/fileThumbnail/thumb.jsx b/ui/component/fileThumbnail/thumb.jsx index a531ecd27..64f11c138 100644 --- a/ui/component/fileThumbnail/thumb.jsx +++ b/ui/component/fileThumbnail/thumb.jsx @@ -7,15 +7,16 @@ import useLazyLoading from 'effects/use-lazy-loading'; type Props = { thumb: string, children?: Node, + className?: string, }; const Thumb = (props: Props) => { - const { thumb, children } = props; + const { thumb, children, className } = props; const thumbnailRef = React.useRef(null); useLazyLoading(thumbnailRef); return ( -
+
{children}
); diff --git a/ui/component/fileThumbnail/view.jsx b/ui/component/fileThumbnail/view.jsx index 94a34de4a..6da4e513c 100644 --- a/ui/component/fileThumbnail/view.jsx +++ b/ui/component/fileThumbnail/view.jsx @@ -53,7 +53,11 @@ function FileThumbnail(props: Props) { const thumbnailUrl = url ? url.replace(/'/g, "\\'") : ''; if (hasResolvedClaim || thumbnailUrl) { - return {children}; + return ( + + {children} + + ); } return (