style(comment media): fix subplebbit avatar size

This commit is contained in:
Tom (plebeius.eth)
2024-05-28 16:11:25 +02:00
parent fdf5803890
commit 2859baf9c2
2 changed files with 14 additions and 9 deletions
@@ -57,11 +57,6 @@ const Thumbnail = ({ commentMediaInfo, isOutOfFeed, isReply, linkHeight, linkWid
displayHeight = '100%';
}
if (isOutOfFeed) {
displayWidth = 'unset';
displayHeight = 'unset';
}
let thumbnailComponent: React.ReactNode = null;
const iframeThumbnail = patternThumbnailUrl || thumbnail;
const gifFrameUrl = useFetchGifFirstFrame(type === 'gif' ? url : undefined);
@@ -86,7 +81,9 @@ const Thumbnail = ({ commentMediaInfo, isOutOfFeed, isReply, linkHeight, linkWid
const linkWithoutThumbnail = url && new URL(url);
return isMobile || isReply ? (
return isOutOfFeed ? (
<span className={styles.subplebbitAvatar}>{thumbnailComponent}</span>
) : isMobile || isReply ? (
<ThumbnailSmall style={thumbnailDimensions} thumbnailSmallPadding={thumbnailSmallPadding}>
{thumbnailComponent}
{isMobile &&