fix(mobile reply): remove unnecessary width calculation for reply images

This commit is contained in:
plebeius.eth
2023-09-23 15:57:34 +02:00
parent e4b1fc6d35
commit 8e4ca881ad
3 changed files with 3 additions and 15 deletions
+1 -5
View File
@@ -2752,11 +2752,7 @@ const All = () => {
</div>
) : replyMediaInfo.type === 'image' ? (
<div key={`enlarge-mob-reply-${index}`} className='img-container'>
<span
key={`mob-ft${reply.cid}`}
className='file-thumb-mobile'
style={isMobileReplyThumbnailClicked[index] ? {} : { width: displayWidthMobile, height: displayHeightMobile }}
>
<span key={`mob-ft${reply.cid}`} className='file-thumb-mobile'>
<img
key={`mob-img-${index}`}
src={replyMediaInfo.url}
+1 -5
View File
@@ -3803,11 +3803,7 @@ const Board = () => {
</div>
) : replyMediaInfo.type === 'image' ? (
<div key={`enlarge-mob-reply-${index}`} className='img-container'>
<span
key={`mob-ft${reply.cid}`}
className='file-thumb-mobile'
style={isMobileReplyThumbnailClicked[index] ? {} : { width: displayWidthMobile, height: displayHeightMobile }}
>
<span key={`mob-ft${reply.cid}`} className='file-thumb-mobile'>
<img
key={`mob-img-${index}`}
src={replyMediaInfo.url}
+1 -5
View File
@@ -2762,11 +2762,7 @@ const Subscriptions = () => {
</div>
) : replyMediaInfo.type === 'image' ? (
<div key={`enlarge-mob-reply-${index}`} className='img-container'>
<span
key={`mob-ft${reply.cid}`}
className='file-thumb-mobile'
style={isMobileReplyThumbnailClicked[index] ? {} : { width: displayWidthMobile, height: displayHeightMobile }}
>
<span key={`mob-ft${reply.cid}`} className='file-thumb-mobile'>
<img
key={`mob-img-${index}`}
src={replyMediaInfo.url}