mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 16:14:40 +00:00
On Desktop, tapping a sidebar nav item while a detail screen (profile, thread, article, editor) was open only mutated the sidebar destination. The opaque `AnimatedContent` overlay driven by `ColumnNavigationState` kept covering the (already-swapped) root content until the user hit Back, creating the impression that the click did nothing. Fix: emit a `clearOverlaySignal` from `SinglePaneState.navigate` and `DeckState.focusExistingColumn`. Each layout collects the signal in a `LaunchedEffect` and calls `navState.clear()`, draining any pending detail stack so the tapped destination is what the user actually sees. - SINGLE_PANE: one signal (Unit), one layout-local `navState`. - DECK: signal payload is the column id; each `DeckColumnContainer` filters on `column.id`, so only the focused column's detail clears — other columns' navigation stacks are preserved. - Same-item taps also clear (signal fires unconditionally, unlike a StateFlow value comparison). - `onOpenSettings` uses the same navigate / focusExistingColumn paths and inherits the fix automatically. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>