Skip to content

Commit 7fd4bfa

Browse files
committed
Improve icons
1 parent bf7f322 commit 7fd4bfa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pages/characters/[name].tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -323,14 +323,14 @@ function CharacterSkills({ skills, costTemplates }: { skills: Skills[], costTemp
323323
function Talent({ talent, costTemplates }: { talent: Skill, costTemplates: CostTemplates }) {
324324
return <div className="border p-1 rounded-xl mb-2 border-opacity-75">
325325
<div className="flex flex-row items-center" id={urlify(talent.name, false)}>
326-
{talent.icon && <Icon icon={talent} className="rounded-xl w-16 h-16 mr-2" />}
326+
{talent.icon && <Icon icon={talent} className="rounded-full w-16 h-16 mr-2 bg-slate-600" />}
327327
<div className="font-bold">{talent.name}</div>
328328
</div>
329329
<div className="flex flex-wrap md:flex-nowrap md:flex-row pb-1">
330-
<div className={(talent.video || talent.videomp4) ? "max-w-2xl pl-1" : "pl-1"}>
330+
<div className={(talent.video || talent.videomp4) ? "max-w-2xl w-2xl pl-1" : "pl-1"}>
331331
<ReactMarkdown>{(talent.desc?.replace(/ ?\$\{.*?\}/g, "").replace(/\n/g, "\n\n") ?? "")}</ReactMarkdown>
332332
</div>
333-
{(talent.video || talent.videomp4) && <div className="p-2 flex flex-col justify-around items-center w-full">
333+
{(talent.video || talent.videomp4) && <div className="p-2 flex flex-col justify-around items-center w-full ">
334334
{talent.videomp4 ? <video src={talent.videomp4} autoPlay loop className="w-full" /> : <img src={talent.video} alt="Talent video" className="w-full" />}
335335
</div>}
336336
</div>
@@ -421,10 +421,10 @@ function TalentTable({ table }: { table: (TalentTable | TalentValue)[] }) {
421421
function Passive({ passive }: { passive: Passive }) {
422422
return <div className="border p-1 rounded-xl mb-2 border-opacity-75">
423423
<div className="flex flex-row items-center" id={urlify(passive.name, false)}>
424-
{passive.icon && <Icon icon={passive} className="rounded-xl w-16 h-16 mr-2" />}
424+
{passive.icon && <Icon icon={passive} className="rounded-full w-16 h-16 mr-2 bg-slate-600" />}
425425
<div className="font-bold">{passive.name}</div>
426426
</div>
427-
<div className="flex flex-col pb-1">
427+
<div className="flex flex-col pb-1 pl-1">
428428
<ReactMarkdown>{(passive.desc?.replace(/ ?\$\{.*?\}/g, "").replace(/\n/g, "\n\n") ?? "")}</ReactMarkdown>
429429
{passive.minAscension != undefined && <div className="italic font-semibold pt-2">
430430
{passive.minAscension == 0 ? "Unlocked by default" : `Unlocks at ascension ${passive.minAscension}`}
@@ -436,10 +436,10 @@ function Passive({ passive }: { passive: Passive }) {
436436
function Constellation({ c }: { c: Constellation }) {
437437
return <div className="border p-1 rounded-xl mb-2 border-opacity-75">
438438
<div className="flex flex-row items-center" id={urlify(c.name, false)}>
439-
{c.icon && <Icon icon={c} className="rounded-xl w-16 h-16 mr-2" />}
439+
{c.icon && <Icon icon={c} className="rounded-full w-16 h-16 mr-2 bg-slate-600" />}
440440
<div className="font-bold">{c.name}</div>
441441
</div>
442-
<div className="flex flex-col pb-1">
442+
<div className="flex flex-col pb-1 pl-1">
443443
<ReactMarkdown>{(c.desc?.replace(/ ?\$\{.*?\}/g, "").replace(/\n/g, "\n\n") ?? "")}</ReactMarkdown>
444444
</div>
445445
</div>

0 commit comments

Comments
 (0)