From 450436aa9049d1739939d2ecaa6e04d78e55c972 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 26 Jan 2026 03:59:27 +0000 Subject: [PATCH] Refactor Chest inventory to bubble UI, fix drag interactions and styling - Refactor Chest inventory to use a bottom-right anchored bubble UI with a tail. - Restrict full-screen backdrop to 'map' tab only; enable interaction on other tabs. - Implement click-outside logic to close the Chest inventory on non-map tabs. - Fix 'stuck highlight' bug in DropZone by resetting `isOver` state on drag end. - Globally disable text selection (`user-select: none`) during drag operations. - Update Chest DropZone highlight style to a white border to match Minecraft aesthetic. - Pass `activeTab` prop to Chest component for conditional backdrop rendering. --- src/RailRound.jsx | 2 +- src/components/Chest.jsx | 99 ++++++++++++++++++++++++---------- src/components/DragContext.jsx | 14 +++++ 3 files changed, 86 insertions(+), 29 deletions(-) diff --git a/src/RailRound.jsx b/src/RailRound.jsx index b150a50..496eb39 100644 --- a/src/RailRound.jsx +++ b/src/RailRound.jsx @@ -2591,7 +2591,7 @@ function RailRoundContent() { onClose={() => setStationMenu(null)} /> )} - +