diff --git a/components/public/artifact-image-export.tsx b/components/public/artifact-image-export.tsx index 1f4c3db..53b676c 100644 --- a/components/public/artifact-image-export.tsx +++ b/components/public/artifact-image-export.tsx @@ -53,16 +53,19 @@ export function ArtifactImageExport({ ? "" : '[data-artifact-export-section="note"]{display:none!important}'; const onlySection = sections.size === 1 ? [...sections][0] : null; - const exportWidth = onlySection === "best-stats" || onlySection === "target-stats" || onlySection === "talents" - ? 800 - : 1200; + const exportWidth = onlySection === "best-stats" + ? 700 + : onlySection === "target-stats" || onlySection === "talents" + ? 800 + : 1200; + const exportHeight = onlySection === "best-stats" ? 700 : undefined; const hideEmptyRightColumn = !showNote && !sections.has("target-stats") && !sections.has("talents") ? ".artifact-export-right{display:none!important}" : ""; const layoutRules = onlySection === "tierlist" ? ".artifact-export-grid{grid-template-columns:1fr!important}.artifact-export-tierlist{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}" : onlySection === "best-stats" - ? ".artifact-export-grid{grid-template-columns:1fr!important}.artifact-export-left{display:flex!important;flex-direction:column!important}.artifact-export-main-stats{order:1!important}.artifact-export-substats{order:2!important}.artifact-export-right{width:100%!important}" + ? ".artifact-export-root{height:100%!important}.artifact-export-grid{grid-template-columns:1fr!important}.artifact-export-left{display:flex!important;flex-direction:column!important}.artifact-export-main-stats,.artifact-export-substats{width:480px!important;max-width:100%!important;margin-inline:auto!important}.artifact-export-main-stats{order:1!important}.artifact-export-substats{order:2!important}.artifact-export-right{width:100%!important}.guide-export-watermark{top:auto!important;bottom:16px!important}" : onlySection === "target-stats" || onlySection === "talents" ? ".artifact-export-grid{display:block!important}.artifact-export-right{width:560px!important;max-width:100%;margin-left:auto!important;margin-right:auto!important;justify-self:center!important}" : ""; @@ -144,6 +147,7 @@ export function ArtifactImageExport({ diff --git a/components/public/guide-export-branding.tsx b/components/public/guide-export-branding.tsx index 08b0ced..82a013f 100644 --- a/components/public/guide-export-branding.tsx +++ b/components/public/guide-export-branding.tsx @@ -28,8 +28,8 @@ export function GuideExportBranding({ loading="eager" className={ constellation - ? "absolute right-4 bottom-0 z-30 h-auto w-[280px] object-contain drop-shadow-[0_4px_3px_rgba(0,0,0,0.8)]" - : "absolute top-4 right-4 z-30 h-auto w-[180px] object-contain drop-shadow-[0_4px_3px_rgba(0,0,0,0.8)]" + ? "guide-export-watermark absolute right-4 bottom-0 z-30 h-auto w-[280px] object-contain drop-shadow-[0_4px_3px_rgba(0,0,0,0.8)]" + : "guide-export-watermark absolute top-4 right-4 z-30 h-auto w-[180px] object-contain drop-shadow-[0_4px_3px_rgba(0,0,0,0.8)]" } /> diff --git a/components/public/structured-guide.tsx b/components/public/structured-guide.tsx index 261816f..f377d9a 100644 --- a/components/public/structured-guide.tsx +++ b/components/public/structured-guide.tsx @@ -398,7 +398,7 @@ function WeaponSectionContent({ return (
Weapons {guide.character.name} -

+

{metric === "overallPercent" ? "Overall Damage" : "Personal Damage"}

{conditionLabel}

@@ -75,14 +75,14 @@ function WeaponComparisonImage({
{row.weapon.name} R{row.refinement}
-
+
{formattedPercent(row[metric])} {row.note ? {row.note} : null}