Skip to content

Commit

Permalink
修复搜索结果纵向滚动过度问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Nov 10, 2024
1 parent becee1a commit cb564ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import androidx.compose.foundation.layout.consumeWindowInsets
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.only
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.staggeredgrid.LazyStaggeredGridState
import androidx.compose.foundation.lazy.staggeredgrid.StaggeredGridItemSpan
import androidx.compose.foundation.lazy.staggeredgrid.rememberLazyStaggeredGridState
Expand Down Expand Up @@ -282,6 +283,7 @@ internal fun SharedTransitionScope.SearchPageResultColumn(
},
)
} else {
Box(Modifier.size(Dp.Hairline))
// placeholder
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ fun <T : Any> SearchResultLazyVerticalStaggeredGrid(

content()

item(span = StaggeredGridItemSpan.FullLine) {
if (items.isLoadingNextPage) {
if (items.isLoadingNextPage) {
item(span = StaggeredGridItemSpan.FullLine) {
ListItem(
headlineContent = {
Box(Modifier.fillMaxWidth(), contentAlignment = Alignment.Center) {
Expand Down

0 comments on commit cb564ab

Please sign in to comment.