mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update video embed reply all.jsx subscriptions.jsx
This commit is contained in:
@@ -1364,6 +1364,17 @@ const All = () => {
|
|||||||
replyMediaInfo?.url.slice(0, 30) + "(...)" :
|
replyMediaInfo?.url.slice(0, 30) + "(...)" :
|
||||||
replyMediaInfo?.url
|
replyMediaInfo?.url
|
||||||
}</a> ({replyMediaInfo?.type})
|
}</a> ({replyMediaInfo?.type})
|
||||||
|
{replyMediaInfo?.type === "video" || "iframe" ? (
|
||||||
|
isReplyThumbnailClicked[index] ? (
|
||||||
|
<span>
|
||||||
|
-[
|
||||||
|
<span className='reply-link'
|
||||||
|
style={{textDecoration: 'underline', cursor: 'pointer'}}
|
||||||
|
onClick={() => {handleThumbnailClick(index, 'reply')}}>Close</span>
|
||||||
|
]
|
||||||
|
</span>)
|
||||||
|
: null)
|
||||||
|
: null}
|
||||||
</div>
|
</div>
|
||||||
{replyMediaInfo?.type === "webpage" ? (
|
{replyMediaInfo?.type === "webpage" ? (
|
||||||
<div key={`enlarge-reply-${index}`} className="img-container">
|
<div key={`enlarge-reply-${index}`} className="img-container">
|
||||||
@@ -1390,12 +1401,29 @@ const All = () => {
|
|||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
{replyMediaInfo?.type === "video" ? (
|
{replyMediaInfo?.type === "video" ? (
|
||||||
|
<div key={`enlarge-reply-${index}`} className={`img-container ${isReplyThumbnailClicked[index] ? 'expanded-container' : ''}`}>
|
||||||
<span key={`fta-${index}`} className="file-thumb-reply" style={isReplyThumbnailClicked[index] ? {} : {width: replyDisplayWidth, height: replyDisplayHeight}}>
|
<span key={`fta-${index}`} className="file-thumb-reply" style={isReplyThumbnailClicked[index] ? {} : {width: replyDisplayWidth, height: replyDisplayHeight}}>
|
||||||
<video controls
|
{isReplyThumbnailClicked[index] ? (
|
||||||
key={`fti-${index}`}
|
<video controls
|
||||||
src={replyMediaInfo.url} alt={replyMediaInfo.type}
|
className='enlarged'
|
||||||
onError={(e) => e.target.src = fallbackImgUrl} />
|
key={`fti-${index}`}
|
||||||
|
src={replyMediaInfo.url}
|
||||||
|
alt={replyMediaInfo.type}
|
||||||
|
style={{cursor: "pointer"}}
|
||||||
|
onError={(e) => e.target.src = fallbackImgUrl}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<video
|
||||||
|
key={`fti-${index}`}
|
||||||
|
src={replyMediaInfo.url}
|
||||||
|
alt="thumbnail"
|
||||||
|
onClick={() => {handleThumbnailClick(index, 'reply')}}
|
||||||
|
style={{cursor: "pointer"}}
|
||||||
|
onError={(e) => e.target.src = fallbackImgUrl}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
{replyMediaInfo?.type === "audio" ? (
|
{replyMediaInfo?.type === "audio" ? (
|
||||||
<span key={`fta-${index}`} className="file-thumb-reply" style={isReplyThumbnailClicked[index] ? {} : {width: replyDisplayWidth, height: replyDisplayHeight}}>
|
<span key={`fta-${index}`} className="file-thumb-reply" style={isReplyThumbnailClicked[index] ? {} : {width: replyDisplayWidth, height: replyDisplayHeight}}>
|
||||||
|
|||||||
@@ -2018,15 +2018,16 @@ const Board = () => {
|
|||||||
replyMediaInfo?.url
|
replyMediaInfo?.url
|
||||||
}</a> ({replyMediaInfo?.type})
|
}</a> ({replyMediaInfo?.type})
|
||||||
{replyMediaInfo?.type === "video" || "iframe" ? (
|
{replyMediaInfo?.type === "video" || "iframe" ? (
|
||||||
isReplyThumbnailClicked[index] ? (
|
isReplyThumbnailClicked[index] ? (
|
||||||
<span>
|
<span>
|
||||||
-[
|
-[
|
||||||
<span className='reply-link'
|
<span className='reply-link'
|
||||||
style={{textDecoration: 'underline', cursor: 'pointer'}}
|
style={{textDecoration: 'underline', cursor: 'pointer'}}
|
||||||
onClick={() => {handleThumbnailClick(index, 'reply')}}>Close</span>
|
onClick={() => {handleThumbnailClick(index, 'reply')}}>Close</span>
|
||||||
]
|
]
|
||||||
</span>) : null)
|
</span>)
|
||||||
: null}
|
: null)
|
||||||
|
: null}
|
||||||
</div>
|
</div>
|
||||||
{replyMediaInfo?.type === "webpage" ? (
|
{replyMediaInfo?.type === "webpage" ? (
|
||||||
<div key={`enlarge-reply-${index}`} className="img-container">
|
<div key={`enlarge-reply-${index}`} className="img-container">
|
||||||
|
|||||||
@@ -1375,6 +1375,17 @@ const Subscriptions = () => {
|
|||||||
replyMediaInfo?.url.slice(0, 30) + "(...)" :
|
replyMediaInfo?.url.slice(0, 30) + "(...)" :
|
||||||
replyMediaInfo?.url
|
replyMediaInfo?.url
|
||||||
}</a> ({replyMediaInfo?.type})
|
}</a> ({replyMediaInfo?.type})
|
||||||
|
{replyMediaInfo?.type === "video" || "iframe" ? (
|
||||||
|
isReplyThumbnailClicked[index] ? (
|
||||||
|
<span>
|
||||||
|
-[
|
||||||
|
<span className='reply-link'
|
||||||
|
style={{textDecoration: 'underline', cursor: 'pointer'}}
|
||||||
|
onClick={() => {handleThumbnailClick(index, 'reply')}}>Close</span>
|
||||||
|
]
|
||||||
|
</span>)
|
||||||
|
: null)
|
||||||
|
: null}
|
||||||
</div>
|
</div>
|
||||||
{replyMediaInfo?.type === "webpage" ? (
|
{replyMediaInfo?.type === "webpage" ? (
|
||||||
<div key={`enlarge-reply-${index}`} className="img-container">
|
<div key={`enlarge-reply-${index}`} className="img-container">
|
||||||
@@ -1401,12 +1412,29 @@ const Subscriptions = () => {
|
|||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
{replyMediaInfo?.type === "video" ? (
|
{replyMediaInfo?.type === "video" ? (
|
||||||
|
<div key={`enlarge-reply-${index}`} className={`img-container ${isReplyThumbnailClicked[index] ? 'expanded-container' : ''}`}>
|
||||||
<span key={`fta-${index}`} className="file-thumb-reply" style={isReplyThumbnailClicked[index] ? {} : {width: replyDisplayWidth, height: replyDisplayHeight}}>
|
<span key={`fta-${index}`} className="file-thumb-reply" style={isReplyThumbnailClicked[index] ? {} : {width: replyDisplayWidth, height: replyDisplayHeight}}>
|
||||||
<video controls
|
{isReplyThumbnailClicked[index] ? (
|
||||||
key={`fti-${index}`}
|
<video controls
|
||||||
src={replyMediaInfo.url} alt={replyMediaInfo.type}
|
className='enlarged'
|
||||||
onError={(e) => e.target.src = fallbackImgUrl} />
|
key={`fti-${index}`}
|
||||||
|
src={replyMediaInfo.url}
|
||||||
|
alt={replyMediaInfo.type}
|
||||||
|
style={{cursor: "pointer"}}
|
||||||
|
onError={(e) => e.target.src = fallbackImgUrl}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<video
|
||||||
|
key={`fti-${index}`}
|
||||||
|
src={replyMediaInfo.url}
|
||||||
|
alt="thumbnail"
|
||||||
|
onClick={() => {handleThumbnailClick(index, 'reply')}}
|
||||||
|
style={{cursor: "pointer"}}
|
||||||
|
onError={(e) => e.target.src = fallbackImgUrl}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
{replyMediaInfo?.type === "audio" ? (
|
{replyMediaInfo?.type === "audio" ? (
|
||||||
<span key={`fta-${index}`} className="file-thumb-reply" style={isReplyThumbnailClicked[index] ? {} : {width: replyDisplayWidth, height: replyDisplayHeight}}>
|
<span key={`fta-${index}`} className="file-thumb-reply" style={isReplyThumbnailClicked[index] ? {} : {width: replyDisplayWidth, height: replyDisplayHeight}}>
|
||||||
|
|||||||
Reference in New Issue
Block a user