From f4736defc47c5d6f311c872da39df93b669abdb5 Mon Sep 17 00:00:00 2001
From: memdmp <memdmp@estrogen.zone>
Date: Wed, 12 Mar 2025 15:09:41 +0100
Subject: feat: in skipAnimation mode, don't include text that gets removed
 post-animation

---
 src/routes/IndexPage.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/routes/IndexPage.svelte')

diff --git a/src/routes/IndexPage.svelte b/src/routes/IndexPage.svelte
index 8a56f08..f7588d3 100644
--- a/src/routes/IndexPage.svelte
+++ b/src/routes/IndexPage.svelte
@@ -415,7 +415,7 @@
       >
         <div class="mb-auto"></div>
         <div class="font-mono leading-4 text-[#070505] flex flex-col p-4">
-          {#each ttyLines.filter((_, i) => i >= idx && i < (nextIdx ?? Infinity)) as line}
+          {#each ttyLines.filter((v, i) => i >= idx && i < (nextIdx ?? Infinity) && (!skipAnimation || !('classes' in v) || !Array.isArray(v.classes) || !v.classes.includes('ttytext-removed-after-done'))) as line}
             {@render ttyText(line)}
           {/each}
         </div>
-- 
cgit v1.2.3

