mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix audio controls
This commit is contained in:
@@ -390,7 +390,7 @@ const Thread = () => {
|
|||||||
) : null}
|
) : null}
|
||||||
{commentMediaInfo?.type === "audio" ? (
|
{commentMediaInfo?.type === "audio" ? (
|
||||||
<span key={`fta-${comment.cid}`} className="file-thumb">
|
<span key={`fta-${comment.cid}`} className="file-thumb">
|
||||||
<audio key={`fti-${comment.cid}`} src={commentMediaInfo.url} alt={commentMediaInfo.type} onError={(e) => e.target.src = fallbackImgUrl} />
|
<audio controls key={`fti-${comment.cid}`} src={commentMediaInfo.url} alt={commentMediaInfo.type} onError={(e) => e.target.src = fallbackImgUrl} />
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
@@ -655,7 +655,7 @@ const Thread = () => {
|
|||||||
) : commentMediaInfo.type === "audio" ? (
|
) : commentMediaInfo.type === "audio" ? (
|
||||||
<div key={`mob-f-${comment.cid}`} className="file-mobile">
|
<div key={`mob-f-${comment.cid}`} className="file-mobile">
|
||||||
<span key={`mob-ft${comment.cid}`} className="file-thumb-mobile">
|
<span key={`mob-ft${comment.cid}`} className="file-thumb-mobile">
|
||||||
<audio key={`mob-img-${comment.cid}`} src={commentMediaInfo.url} alt={commentMediaInfo.type} onError={(e) => e.target.src = fallbackImgUrl} />
|
<audio controls key={`mob-img-${comment.cid}`} src={commentMediaInfo.url} alt={commentMediaInfo.type} onError={(e) => e.target.src = fallbackImgUrl} />
|
||||||
<div key={`mob-fi-${comment.cid}`} className="file-info-mobile">{commentMediaInfo.type}</div>
|
<div key={`mob-fi-${comment.cid}`} className="file-info-mobile">{commentMediaInfo.type}</div>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user