fix(export-image): remove DPR on team calc and increase DPS text size
This commit is contained in:
@@ -67,12 +67,16 @@ export async function GET(
|
||||
anuphanFonts,
|
||||
Promise.all(
|
||||
team.members.map(async (member) => {
|
||||
const [character, weapon, artifact, secondArtifact] = await Promise.all([
|
||||
const [character, weapon, artifact, secondArtifact] = await Promise.all(
|
||||
[
|
||||
pngDataUrl(member.character.imageUrl),
|
||||
member.weapon ? pngDataUrl(member.weapon.imageUrl) : null,
|
||||
member.artifact ? pngDataUrl(member.artifact.imageUrl) : null,
|
||||
member.secondArtifact ? pngDataUrl(member.secondArtifact.imageUrl) : null,
|
||||
]);
|
||||
member.secondArtifact
|
||||
? pngDataUrl(member.secondArtifact.imageUrl)
|
||||
: null,
|
||||
],
|
||||
);
|
||||
return { character, weapon, artifact, secondArtifact };
|
||||
}),
|
||||
),
|
||||
@@ -270,7 +274,8 @@ export async function GET(
|
||||
/>
|
||||
</div>
|
||||
) : null}
|
||||
{member.secondArtifact && memberAssets[index].secondArtifact ? (
|
||||
{member.secondArtifact &&
|
||||
memberAssets[index].secondArtifact ? (
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
@@ -278,7 +283,9 @@ export async function GET(
|
||||
height: 96,
|
||||
overflow: "hidden",
|
||||
borderRadius: 16,
|
||||
background: rarityGradient(member.secondArtifact.rarity),
|
||||
background: rarityGradient(
|
||||
member.secondArtifact.rarity,
|
||||
),
|
||||
}}
|
||||
>
|
||||
<img
|
||||
@@ -394,9 +401,9 @@ export async function GET(
|
||||
fontWeight: 700,
|
||||
}}
|
||||
>
|
||||
<span style={{ color: "#f0c95f" }}>DPS: {amount(dps)}</span>
|
||||
<span style={{ color: "#74747f" }}>|</span>
|
||||
<span>DPR: {amount(total)}</span>
|
||||
<span style={{ color: "#f0c95f", fontSize: 64, fontWeight: 700 }}>
|
||||
DPS: {amount(dps)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user