Skip to content

Commit b6824dd

Browse files
committed
Improve video sizing
1 parent a8e2ba8 commit b6824dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pages/characters/[char].tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,12 @@ function Talent({ talent, costTemplates }: { talent: Skill, costTemplates: CostT
322322
{talent.icon && <Icon icon={talent} className="rounded-full w-16 h-16 mr-2 bg-slate-600" />}
323323
<div className="font-bold">{talent.name}</div>
324324
</div>
325-
<div className="flex flex-wrap md:flex-nowrap md:flex-row pb-1">
325+
<div className="flex flex-wrap sm:flex-nowrap sm:flex-row pb-1">
326326
<div className={(talent.video || talent.videomp4) ? "max-w-2xl w-2xl pl-1" : "pl-1"}>
327327
<ReactMarkdown>{(talent.desc?.replace(/ ?\$\{.*?\}/g, "").replace(/\n/g, "\n\n") ?? "")}</ReactMarkdown>
328328
</div>
329-
{(talent.video || talent.videomp4) && <div className="p-2 flex flex-col justify-around items-center w-full ">
330-
{talent.videomp4 ? <video src={talent.videomp4} autoPlay muted loop playsInline className="w-full" /> : <img src={talent.video} alt="Talent video" className="w-full" />}
329+
{(talent.video || talent.videomp4) && <div className="p-2 flex flex-col justify-around items-center sm:items-end w-full sm:min-w-min">
330+
{talent.videomp4 ? <video src={talent.videomp4} autoPlay muted loop playsInline className="w-fit" /> : <img src={talent.video} alt="Talent video" className="w-full" />}
331331
</div>}
332332
</div>
333333
{talent.talentTable && <TalentTableSection table={talent.talentTable} />}

0 commit comments

Comments
 (0)