From 51da41ccfbfcfe94aee610719973cbb320e506f8 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 23 Nov 2026 13:48:18 +0100 Subject: web: replace deprecated svelte:self with self-import in AbilityText $svelte:self is deprecated in Svelte 5; import the component under its own name and use it for the recursive child rendering. --- web/src/lib/ui/cards/AbilityText.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'web/src/lib/ui/cards/AbilityText.svelte') diff --git a/web/src/lib/ui/cards/AbilityText.svelte b/web/src/lib/ui/cards/AbilityText.svelte index 51fe672..a4e896a 100644 --- a/web/src/lib/ui/cards/AbilityText.svelte +++ b/web/src/lib/ui/cards/AbilityText.svelte @@ -11,6 +11,7 @@ import type { LineStyle, Node } from '$lib/game/line/types'; import { resolveStyle } from '$lib/game/line/lineStyle'; import { abilityImage, dividerImage } from '$lib/game/line/images'; + import AbilityText from './AbilityText.svelte'; let { node, @@ -33,7 +34,7 @@ {#if node.kind === 'column'}
{#each node.children as child} - + {/each}
{:else if node.kind === 'row' || node.kind === 'rowgroup'} @@ -43,13 +44,13 @@ style="justify-content: {node.align === 'left' ? 'flex-start' : node.align === 'right' ? 'flex-end' : 'center'}" > {#each node.children as child} - + {/each} {:else if node.kind === 'subline'}
{#each node.children as child} - + {/each}
{:else if node.kind === 'conditional'} @@ -59,7 +60,7 @@ {/if}
{#each node.children as child} - + {/each}
-- cgit v1.3.1