Preserve stat block panel collapsed state on turn advance
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -210,9 +210,9 @@ export function App() {
|
||||
encounter.combatants[encounter.activeIndex]?.creatureId;
|
||||
useEffect(() => {
|
||||
if (activeCreatureId && sidePanel.panelView.mode === "creature") {
|
||||
sidePanel.showCreature(activeCreatureId);
|
||||
sidePanel.updateCreature(activeCreatureId);
|
||||
}
|
||||
}, [activeCreatureId, sidePanel.panelView.mode, sidePanel.showCreature]);
|
||||
}, [activeCreatureId, sidePanel.panelView.mode, sidePanel.updateCreature]);
|
||||
|
||||
// Auto-scroll to the active combatant when the turn changes
|
||||
const activeRowRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
Reference in New Issue
Block a user