From 7a5a8031683876a7d276509e2ca083b2516eba60 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 11 Nov 2023 20:31:52 -0800 Subject: [PATCH] fix: chat history styling --- src/routes/+page.svelte | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 43bc95367..5b9471839 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -385,7 +385,6 @@ } renderLatex(); - hljs.highlightAll(); createCopyCodeBlockButton(); } @@ -546,6 +545,12 @@ history.currentId = messageId; } } + + await tick(); + + renderLatex(); + hljs.highlightAll(); + createCopyCodeBlockButton(); }; const showNextMessage = async (message) => { @@ -586,6 +591,12 @@ history.currentId = messageId; } } + + await tick(); + + renderLatex(); + hljs.highlightAll(); + createCopyCodeBlockButton(); }; //////////////////////////