mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-19 10:30:46 +00:00
android, desktop: show the member and subscriber counts of directory results in the secondary text size
The count used typography.caption, which is 18 sp in this theme, larger than the description above it. It now uses body2, as the other subscriber counts do.
This commit is contained in:
committed by
spaced4ndy
parent
831396edf6
commit
05b8f33f81
+1
-1
@@ -253,7 +253,7 @@ fun DirectorySearchRow(entry: DirectorySearchEntry, modifier: Modifier = Modifie
|
||||
if (descr != null && descr.isNotEmpty()) {
|
||||
Text(descr, color = MaterialTheme.colors.secondary, maxLines = 2, overflow = TextOverflow.Ellipsis)
|
||||
}
|
||||
Text(membersText, style = MaterialTheme.typography.caption, color = MaterialTheme.colors.secondary)
|
||||
Text(membersText, style = MaterialTheme.typography.body2, color = MaterialTheme.colors.secondary)
|
||||
}
|
||||
Text(
|
||||
stringResource(if (isChannel) MR.strings.compose_view_join_channel else MR.strings.compose_view_join_group),
|
||||
|
||||
@@ -473,7 +473,7 @@ Each part renders only when it has rows: the Names part when `rows.names` is not
|
||||
| Row | View | Tap |
|
||||
|-----|------|-----|
|
||||
| Name | [`NameSearchRow`](../../common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/DirectorySearchView.kt#L267-L295): avatar, profile name in bold, the SimpleX name in parentheses (secondary, one `AnnotatedString`, one line), description (2 lines) | `planAndConnect(rhId, result.target, close = null, cleanup = null)` |
|
||||
| Directory entry | [`DirectorySearchRow`](../../common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/DirectorySearchView.kt#L220-L265): avatar, `#` + name, the directory's SimpleX name claim as plain text (truncates first), description (2 lines), member or subscriber count, and the verb "Join channel" / "Join group" (one line, never wrapped) | `planAndConnect(rhId, result.entry.link, close = null, cleanup = null)` |
|
||||
| Directory entry | [`DirectorySearchRow`](../../common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/DirectorySearchView.kt#L220-L265): avatar, `#` + name, the directory's SimpleX name claim as plain text (truncates first), description (2 lines), member or subscriber count (`body2`, secondary colour), and the verb "Join channel" / "Join group" (one line, never wrapped) | `planAndConnect(rhId, result.entry.link, close = null, cleanup = null)` |
|
||||
| Retry | [`DirectoryRetryRow`](../../common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/DirectorySearchView.kt#L314-L326): "Search failed, tap to retry" | `withApi { retry() }` |
|
||||
| Show more | [`DirectoryShowMoreRow`](../../common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/DirectorySearchView.kt#L297-L312): "Show more", disabled (secondary colour) while `loading` | `withApi { loadMore() }` |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user