mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
fix(concord): open a community by tapping its name, not just its avatar
On the Concord home list the row's `clickable` expands/collapses, and the only way to open a community was a separate `clickable` on the 40dp avatar — nothing marked it as its own target, and tapping the name (the thing most people reach for) silently expanded the row instead. Give the name/subtitle column the same `onOpen` the avatar already has, so the identity block — icon and title together — opens the community while the rest of the row and the chevron keep expanding it. Tapping a title to open the thing it names is the convention users arrive with; the disclosure control stays the disclosure control. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
ae6f56283b
commit
fa1a32e91c
+5
-1
@@ -310,7 +310,11 @@ private fun CommunityHeader(
|
||||
loadRobohash = accountViewModel.settings.isNotPerformanceMode(),
|
||||
autoPlayGif = autoPlayGif,
|
||||
)
|
||||
Column(Modifier.weight(1f)) {
|
||||
// The identity block — icon *and* name/subtitle — opens the community; the rest of the row and
|
||||
// the chevron expand it. Tapping a title to open the thing it names is the convention users
|
||||
// arrive with, and the name previously fell through to the row's expand, leaving the 40dp
|
||||
// avatar as the only way in with nothing to suggest it was a separate target.
|
||||
Column(Modifier.weight(1f).clickable(onClick = onOpen)) {
|
||||
Text(
|
||||
name,
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
|
||||
Reference in New Issue
Block a user