ux: swap positions of new chat and search buttons in top bar (Issue #212) (#226)

Swapped the order of the Search toggle and New Chat icon buttons
in the ChatScreen top bar actions slot. Search is now on the left
(right-side outer position) which matches user expectations —
the new chat button was accidentally tapped when reaching for search.

Fixes #212

Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
M57andM57 authored and GitHub committed 2026-06-21 10:24:32 +03:00
1 parent 4e8da7b90c
commit a5c070b353
1 file changed
+7 -7
@@ -287,13 +287,6 @@ fun ChatScreen(
}
},
actions = {
IconButton(onClick = { viewModel.createNewSession() }) {
Icon(
imageVector = Icons.Filled.Add,
contentDescription = "New Chat",
)
}
// Search toggle
IconButton(onClick = { viewModel.toggleSearch() }) {
Icon(
@@ -303,6 +296,13 @@ fun ChatScreen(
if (state.isSearchActive) "Close search" else "Search",
)
}
IconButton(onClick = { viewModel.createNewSession() }) {
Icon(
imageVector = Icons.Filled.Add,
contentDescription = "New Chat",
)
}
},
) { _ ->
Column(