From 847c684356098fa14d6b793317853afa1025b7ac Mon Sep 17 00:00:00 2001
From: Eduardo Gonzalez
Date: Sat, 30 Nov 2024 21:12:40 +0900
Subject: [PATCH] Restore accidentally rolled back code.
---
src/lib/components/MessageCard.svelte | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/src/lib/components/MessageCard.svelte b/src/lib/components/MessageCard.svelte
index 6b2c2e2..6380362 100644
--- a/src/lib/components/MessageCard.svelte
+++ b/src/lib/components/MessageCard.svelte
@@ -155,12 +155,26 @@
class:fork-selected={forkSelected}
>
- {#if isSource}
-
- {:else}
-
- {/if}
-
+ {#if Array.isArray(contentItems)}
+ {#each contentItems as item}
+ {#if item.type === 'text'}
+ {#if isSource}
+
+ {:else}
+
+ {/if}
+ {:else if item.type === 'image_url'}
+
+ {/if}
+ {/each}
+ {:else}
+ {#if isSource}
+
+ {:else}
+
+ {/if}
+ {/if}
+
{#if alternativesCount > 1}