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;