diff --git a/src/lib/components/reps/SummonRep.svelte b/src/lib/components/reps/SummonRep.svelte index 31991be2..361d7f40 100644 --- a/src/lib/components/reps/SummonRep.svelte +++ b/src/lib/components/reps/SummonRep.svelte @@ -20,9 +20,14 @@ Array.from({ length: 6 }, (_, i) => summons.find((s: GridSummon) => s?.position === i)) ) + // Transparent SVG placeholders with correct aspect ratios for grid sizing + // Main/friend: 56x97, Grid: 184x138 + const mainPlaceholder = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 97'%3E%3C/svg%3E` + const gridPlaceholder = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 184 138'%3E%3C/svg%3E` + function summonImageUrl(s?: GridSummon, isMain = false): string { const id = s?.summon?.granblueId - if (!id) return '' + if (!id) return isMain ? mainPlaceholder : gridPlaceholder const size = isMain ? 'main' : 'grid' return getSummonImage(id, size) } @@ -30,27 +35,27 @@