mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(mobile reply): remove unnecessary width calculation for reply images
This commit is contained in:
@@ -2752,11 +2752,7 @@ const All = () => {
|
|||||||
</div>
|
</div>
|
||||||
) : replyMediaInfo.type === 'image' ? (
|
) : replyMediaInfo.type === 'image' ? (
|
||||||
<div key={`enlarge-mob-reply-${index}`} className='img-container'>
|
<div key={`enlarge-mob-reply-${index}`} className='img-container'>
|
||||||
<span
|
<span key={`mob-ft${reply.cid}`} className='file-thumb-mobile'>
|
||||||
key={`mob-ft${reply.cid}`}
|
|
||||||
className='file-thumb-mobile'
|
|
||||||
style={isMobileReplyThumbnailClicked[index] ? {} : { width: displayWidthMobile, height: displayHeightMobile }}
|
|
||||||
>
|
|
||||||
<img
|
<img
|
||||||
key={`mob-img-${index}`}
|
key={`mob-img-${index}`}
|
||||||
src={replyMediaInfo.url}
|
src={replyMediaInfo.url}
|
||||||
|
|||||||
@@ -3803,11 +3803,7 @@ const Board = () => {
|
|||||||
</div>
|
</div>
|
||||||
) : replyMediaInfo.type === 'image' ? (
|
) : replyMediaInfo.type === 'image' ? (
|
||||||
<div key={`enlarge-mob-reply-${index}`} className='img-container'>
|
<div key={`enlarge-mob-reply-${index}`} className='img-container'>
|
||||||
<span
|
<span key={`mob-ft${reply.cid}`} className='file-thumb-mobile'>
|
||||||
key={`mob-ft${reply.cid}`}
|
|
||||||
className='file-thumb-mobile'
|
|
||||||
style={isMobileReplyThumbnailClicked[index] ? {} : { width: displayWidthMobile, height: displayHeightMobile }}
|
|
||||||
>
|
|
||||||
<img
|
<img
|
||||||
key={`mob-img-${index}`}
|
key={`mob-img-${index}`}
|
||||||
src={replyMediaInfo.url}
|
src={replyMediaInfo.url}
|
||||||
|
|||||||
@@ -2762,11 +2762,7 @@ const Subscriptions = () => {
|
|||||||
</div>
|
</div>
|
||||||
) : replyMediaInfo.type === 'image' ? (
|
) : replyMediaInfo.type === 'image' ? (
|
||||||
<div key={`enlarge-mob-reply-${index}`} className='img-container'>
|
<div key={`enlarge-mob-reply-${index}`} className='img-container'>
|
||||||
<span
|
<span key={`mob-ft${reply.cid}`} className='file-thumb-mobile'>
|
||||||
key={`mob-ft${reply.cid}`}
|
|
||||||
className='file-thumb-mobile'
|
|
||||||
style={isMobileReplyThumbnailClicked[index] ? {} : { width: displayWidthMobile, height: displayHeightMobile }}
|
|
||||||
>
|
|
||||||
<img
|
<img
|
||||||
key={`mob-img-${index}`}
|
key={`mob-img-${index}`}
|
||||||
src={replyMediaInfo.url}
|
src={replyMediaInfo.url}
|
||||||
|
|||||||
Reference in New Issue
Block a user