Skip to content

Commit

Permalink
Switch inbox & profile tabs with swipe gesture even whey they are emp…
Browse files Browse the repository at this point in the history
…ty. (#861)

Co-authored-by: Kevin Phoenix <kevin@kphoenix.us>
  • Loading branch information
nahwneeth and twizmwazin committed Jun 24, 2023
1 parent 54a2e01 commit a428473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ fun InboxTabs(
}
},
)
Box(modifier = Modifier.pullRefresh(refreshState)) {
Box(modifier = Modifier.pullRefresh(refreshState).fillMaxSize()) {
PullRefreshIndicator(loading, refreshState, Modifier.align(Alignment.TopCenter))
when (val mentionsRes = inboxViewModel.mentionsRes) {
ApiState.Empty -> ApiEmptyText()
Expand Down Expand Up @@ -598,7 +598,7 @@ fun InboxTabs(
}
},
)
Box(modifier = Modifier.pullRefresh(refreshState)) {
Box(modifier = Modifier.pullRefresh(refreshState).fillMaxSize()) {
PullRefreshIndicator(loading, refreshState, Modifier.align(Alignment.TopCenter))
when (val messagesRes = inboxViewModel.messagesRes) {
ApiState.Empty -> ApiEmptyText()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ fun UserTabs(
PullRefreshIndicator(
loading,
pullRefreshState,
Modifier.align(Alignment.TopCenter),
Modifier.align(Alignment.TopCenter).fillMaxSize(),
)
when (val profileRes = personProfileViewModel.personDetailsRes) {
ApiState.Empty -> ApiEmptyText()
Expand Down Expand Up @@ -506,7 +506,7 @@ fun UserTabs(
}
}

Box(modifier = Modifier.pullRefresh(pullRefreshState)) {
Box(modifier = Modifier.pullRefresh(pullRefreshState).fillMaxSize()) {
PullRefreshIndicator(loading, pullRefreshState, Modifier.align(Alignment.TopCenter))
CommentNodes(
nodes = nodes,
Expand Down

0 comments on commit a428473

Please sign in to comment.