From c6117340883fb961fffe9d4b8707654662d8e5e0 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 21 Dec 2024 09:41:49 -0700 Subject: [PATCH] refac: styling --- src/lib/components/chat/Messages/ContentRenderer.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/ContentRenderer.svelte b/src/lib/components/chat/Messages/ContentRenderer.svelte index 40cf0352f..04634ba2e 100644 --- a/src/lib/components/chat/Messages/ContentRenderer.svelte +++ b/src/lib/components/chat/Messages/ContentRenderer.svelte @@ -56,7 +56,7 @@ // Calculate space available on the right const spaceOnRight = parentRect.width - left; - let halfScreenWidth = window.innerWidth / 2; + let halfScreenWidth = $mobile ? window.innerWidth / 2 : window.innerWidth / 3; if (spaceOnRight < halfScreenWidth) { const right = parentRect.right - rect.right;