From 4129a43103d14c6d0b1d8848307900c270a7975d Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 22 Dec 2025 23:21:57 -0800 Subject: [PATCH] summon rep: show subauras + friend summon, 3x2 grid layout --- src/lib/components/reps/SummonRep.svelte | 81 ++++++++---------------- 1 file changed, 26 insertions(+), 55 deletions(-) diff --git a/src/lib/components/reps/SummonRep.svelte b/src/lib/components/reps/SummonRep.svelte index 820bef4b..31991be2 100644 --- a/src/lib/components/reps/SummonRep.svelte +++ b/src/lib/components/reps/SummonRep.svelte @@ -13,15 +13,11 @@ // Use direct summons if provided, otherwise get from party const summons = $derived(directSummons || party?.summons || []) const main = $derived(summons.find((s: GridSummon) => s?.main || s?.position === -1)) - const friend = $derived( - extendedView ? summons.find((s: GridSummon) => s?.friend || s?.position === -2) : undefined - ) + const friend = $derived(summons.find((s: GridSummon) => s?.friend || s?.position === -2)) - // In standard view: show positions 0-3 (4 summons) - // In extended view: show positions 0-5 (6 summons including subauras) - const gridLength = $derived(extendedView ? 6 : 4) + // Always show positions 0-5 (6 summons including subauras) const grid = $derived( - Array.from({ length: gridLength }, (_, i) => summons.find((s: GridSummon) => s?.position === i)) + Array.from({ length: 6 }, (_, i) => summons.find((s: GridSummon) => s?.position === i)) ) function summonImageUrl(s?: GridSummon, isMain = false): string { @@ -48,16 +44,14 @@ {/each} - {#if extendedView} -
- {#if friend}Friend Summon{/if} -
- {/if} +
+ {#if friend}Friend Summon{/if} +