浏览代码

refac: styling

Timothy Jaeryang Baek 9 月之前
父节点
当前提交
c611734088
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;