8iz120vqu: Move the views and kind labels into a meta row below the media
This commit is contained in:
@@ -66,16 +66,20 @@ export function MinnectMedia({ media, thumbnailUrl, question, who, pictureUrl, v
|
||||
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M8 5.5v13a1 1 0 0 0 1.5.86l10.5-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5Z" /></svg>
|
||||
</button>
|
||||
) : null}
|
||||
{views !== null ? (
|
||||
<span className="trend-views">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
||||
<path d="M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z" /><circle cx="12" cy="12" r="3" />
|
||||
</svg>
|
||||
{views.toLocaleString("en-US")} {views === 1 ? "view" : "views"}
|
||||
</span>
|
||||
) : null}
|
||||
{playable ? <span className="trend-kind">{isVideo ? "Video" : "Audio"}</span> : null}
|
||||
</div>
|
||||
{views !== null || playable ? (
|
||||
<div className="trend-meta">
|
||||
{views !== null ? (
|
||||
<span className="trend-views">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
||||
<path d="M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z" /><circle cx="12" cy="12" r="3" />
|
||||
</svg>
|
||||
{views.toLocaleString("en-US")} {views === 1 ? "view" : "views"}
|
||||
</span>
|
||||
) : <span />}
|
||||
{playable ? <span className="trend-kind">{isVideo ? "Video" : "Audio"}</span> : null}
|
||||
</div>
|
||||
) : null}
|
||||
{isAudio ? (
|
||||
<audio ref={audio} className="minnect-audio" controls preload="none" src={media.url} aria-label={`Play answer from ${who}`} />
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user