mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-10 07:30:39 +01:00
fix(community): improvements to community list and detail
This commit is contained in:
parent
9787bc533f
commit
2b9dfa799b
@ -299,6 +299,7 @@ class CommunityDetailScreen(
|
||||
},
|
||||
style = MaterialTheme.typography.headlineSmall,
|
||||
)
|
||||
if (!isOnOtherInstance) {
|
||||
Button(
|
||||
modifier = Modifier
|
||||
.align(Alignment.CenterHorizontally)
|
||||
@ -336,6 +337,7 @@ class CommunityDetailScreen(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
items(uiState.posts, key = { it.id.toString() + it.myVote }) { post ->
|
||||
val dismissState = rememberDismissState(
|
||||
confirmStateChange = {
|
||||
|
@ -85,7 +85,11 @@ class CommunityListViewModel(
|
||||
val items = communityRepository.getSubscribed(
|
||||
auth = auth,
|
||||
).filter {
|
||||
if (searchText.isNotBlank()) {
|
||||
it.name.contains(searchText)
|
||||
} else {
|
||||
true
|
||||
}
|
||||
}
|
||||
currentPage++
|
||||
mvi.updateState {
|
||||
|
Loading…
x
Reference in New Issue
Block a user