fix: 首页骨架屏不显示搜索框

This commit is contained in:
HuanCheng65 2023-03-12 14:12:06 +08:00
parent f00a79ebc3
commit 4fec7205da
No known key found for this signature in database
GPG Key ID: E9031EF91A805148
1 changed files with 6 additions and 0 deletions

View File

@ -518,12 +518,18 @@ private fun HomePageSkeletonScreen(
listSingle: Boolean, listSingle: Boolean,
gridCells: GridCells gridCells: GridCells
) { ) {
val context = LocalContext.current
LazyVerticalGrid( LazyVerticalGrid(
columns = gridCells, columns = gridCells,
contentPadding = PaddingValues(bottom = 12.dp), contentPadding = PaddingValues(bottom = 12.dp),
modifier = Modifier modifier = Modifier
.fillMaxSize(), .fillMaxSize(),
) { ) {
item(key = "SearchBox", span = { GridItemSpan(maxLineSpan) }) {
SearchBox(modifier = Modifier.padding(bottom = 12.dp)) {
context.goToActivity<NewSearchActivity>()
}
}
item(key = "TopForumHeaderPlaceholder", span = { GridItemSpan(maxLineSpan) }) { item(key = "TopForumHeaderPlaceholder", span = { GridItemSpan(maxLineSpan) }) {
Column { Column {
Header( Header(