refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2024-12-21 09:41:49 -07:00
parent 41cabf5a2c
commit c611734088

View File

@ -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;