Browse Source

refac: styling

Timothy Jaeryang Baek 6 months ago
parent
commit
c611734088
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/chat/Messages/ContentRenderer.svelte

+ 1 - 1
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;