From ca7345543f19adc453e2dfb9f21818105a0629f2 Mon Sep 17 00:00:00 2001 From: Starknet Dev Date: Fri, 13 Sep 2024 14:58:17 -0400 Subject: [PATCH] fix prescience overlaps --- .../components/encounters/EnounterDialog.tsx | 28 ++++++++++--------- ui/src/app/page.tsx | 6 +--- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/ui/src/app/components/encounters/EnounterDialog.tsx b/ui/src/app/components/encounters/EnounterDialog.tsx index 079b19af7..471216070 100644 --- a/ui/src/app/components/encounters/EnounterDialog.tsx +++ b/ui/src/app/components/encounters/EnounterDialog.tsx @@ -12,28 +12,30 @@ const EncounterDialog = () => { const position = useMemo(() => { if (width > 1024) { // Large screens - return { x: width - 650, y: 50 }; + return { x: width - 850, y: -500 }; } else if (width > 768) { // Medium screens - return { x: width - 620, y: 50 }; + return { x: width - 620, y: -500 }; } else { // Small screens - return { x: 300, y: 50 }; + return { x: 0, y: -500 }; } }, [width]); return ( - -
- showEncounterTable(false)} - /> -
- +
+ +
+ showEncounterTable(false)} + /> +
+ +
-
- + +
); }; diff --git a/ui/src/app/page.tsx b/ui/src/app/page.tsx index bbec5a663..bd5e86b02 100644 --- a/ui/src/app/page.tsx +++ b/ui/src/app/page.tsx @@ -866,11 +866,7 @@ function Home() { {screen === "player" && } {screen === "wallet" && } - {encounterTable && ( -
- -
- )} + {encounterTable && } {showProfile && (