Refactor/reacrhitecture to fsd+ #49
@@ -34,7 +34,6 @@ const fontB = $derived(comparisonStore.fontB);
|
||||
let slot = $state<0 | 1>(0);
|
||||
let slotFonts = $state<[string, string]>(['', '']);
|
||||
|
||||
const displayChar = $derived(char === ' ' ? ' ' : char);
|
||||
const targetFont = $derived(isPast ? fontA?.name ?? '' : fontB?.name ?? '');
|
||||
|
||||
$effect(() => {
|
||||
@@ -63,7 +62,7 @@ $effect(() => {
|
||||
style:position={slot === s ? 'relative' : 'absolute'}
|
||||
aria-hidden={slot !== s ? true : undefined}
|
||||
>
|
||||
{displayChar}
|
||||
{char}
|
||||
</span>
|
||||
{/each}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user