mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
fix(desktop): clear search scrim when navigating via sidebar
Sidebar onNavigate callback now sets searchActiveState.value = false, clearing the feed search expansion and sidebar dim overlay when the user clicks any nav item (Home, Messages, Settings, etc.) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
971d20be77
commit
5e128cb535
@@ -1364,6 +1364,7 @@ fun MainContent(
|
||||
// Shared sidebar for both layout modes
|
||||
if (!isImmersive) {
|
||||
val allAccountsState by accountManager.allAccounts.collectAsState()
|
||||
val searchActiveState = com.vitorpamplona.amethyst.desktop.ui.theme.LocalFeedSearchActive.current
|
||||
var showAddAccountDialog by remember { mutableStateOf(false) }
|
||||
|
||||
// Derive active column type based on layout mode
|
||||
@@ -1412,6 +1413,7 @@ fun MainContent(
|
||||
}
|
||||
},
|
||||
onNavigate = { type ->
|
||||
searchActiveState.value = false
|
||||
when (layoutMode) {
|
||||
LayoutMode.DECK -> {
|
||||
if (deckState.hasColumnOfType(type)) {
|
||||
|
||||
Reference in New Issue
Block a user