mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-20 10:12:24 +00:00
ios: show "Show more" in the secondary colour while the next page loads
The row was disabled while loading but kept its primary colour, so it looked tappable. The Kotlin app already does this.
This commit is contained in:
committed by
spaced4ndy
parent
78627445dd
commit
01eb96c841
@@ -282,7 +282,7 @@ struct DirectoryShowMoreRow: View {
|
||||
Task { await onlineSearch.loadMore() }
|
||||
} label: {
|
||||
Text("Show more")
|
||||
.foregroundColor(theme.colors.primary)
|
||||
.foregroundColor(onlineSearch.loading ? theme.colors.secondary : theme.colors.primary)
|
||||
}
|
||||
.disabled(onlineSearch.loading)
|
||||
}
|
||||
|
||||
@@ -416,7 +416,7 @@ Each part renders only when it has rows: the Names part when `rows.names` is not
|
||||
| Name | [`NameSearchRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L249): avatar, profile name in bold, the SimpleX name in parentheses (secondary), description (2 lines) | `planAndConnect(result.target, dismiss: false)` |
|
||||
| Directory entry | [`DirectorySearchRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L196): avatar, `#` + name, the directory's SimpleX name claim as plain text, description (2 lines), member or subscriber count, and the verb "Join channel" / "Join group" (one line, fixed size) | `planAndConnect(result.entry.link, dismiss: false)` |
|
||||
| Retry | [`DirectoryRetryRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L291) via [`directoryRetryRow()`](../../Shared/Views/ChatList/ChatListView.swift#L695): "Search failed, tap to retry" | `retry()` |
|
||||
| Show more | [`DirectoryShowMoreRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L276) via [`directoryShowMoreRow()`](../../Shared/Views/ChatList/ChatListView.swift#L689): "Show more", disabled while `loading` | `loadMore()` |
|
||||
| Show more | [`DirectoryShowMoreRow`](../../Shared/Views/ChatList/DirectorySearchView.swift#L276) via [`directoryShowMoreRow()`](../../Shared/Views/ChatList/ChatListView.swift#L689): "Show more", disabled and in the secondary colour while `loading` | `loadMore()` |
|
||||
|
||||
A name or directory row tap first sets `searchFocussed = false`. Text from the directory and from name owners is rendered with `Text(String)` / `Text(verbatim:)` (never parsed as markdown) with line limits.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user