diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index ef7f90b..db1a107 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -195,24 +195,6 @@ export function App() { }); }, []); - // Auto-show stat block for the active combatant when turn changes, - // but only when the viewport is wide enough to show it alongside the tracker. - // Only react to activeIndex changes — not combatant reordering (e.g. Roll All). - const prevActiveIndexRef = useRef(encounter.activeIndex); - useEffect(() => { - if (prevActiveIndexRef.current === encounter.activeIndex) return; - prevActiveIndexRef.current = encounter.activeIndex; - if (!globalThis.matchMedia("(min-width: 1024px)").matches) return; - const active = encounter.combatants[encounter.activeIndex]; - if (!active?.creatureId || !isLoaded) return; - sidePanel.showCreature(active.creatureId); - }, [ - encounter.activeIndex, - encounter.combatants, - isLoaded, - sidePanel.showCreature, - ]); - return (