From 4e691660171922b7673cc955ca64587404a15bb7 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 10 Aug 2026 01:32:11 -0600 Subject: [PATCH] refac --- src/lib/components/common/DocxPreview.svelte | 43 +-- src/lib/components/common/PptxPreview.svelte | 276 +++++-------------- 2 files changed, 79 insertions(+), 240 deletions(-) diff --git a/src/lib/components/common/DocxPreview.svelte b/src/lib/components/common/DocxPreview.svelte index 2b1c3fabd3..dacc79fa53 100644 --- a/src/lib/components/common/DocxPreview.svelte +++ b/src/lib/components/common/DocxPreview.svelte @@ -147,7 +147,10 @@ }); -
+
{#if loading} @@ -159,14 +162,20 @@ {#if error}
{error}
{:else if fallbackHtml} -
-
+
+
{@html fallbackHtml}
{:else} -
+
{/if} @@ -221,18 +230,6 @@