切换评论排列方式时屏幕下方会出现红线调整
This commit is contained in:
@@ -669,29 +669,29 @@ fun CommentContent(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Handle loading and error states as before
|
// Handle loading and error states as before
|
||||||
if (commentsPagging.loadState.refresh is LoadState.Loading) {
|
// if (commentsPagging.loadState.refresh is LoadState.Loading) {
|
||||||
Box(
|
// Box(
|
||||||
modifier = Modifier
|
// modifier = Modifier
|
||||||
.fillMaxSize()
|
// .fillMaxSize()
|
||||||
.height(120.dp),
|
// .height(120.dp),
|
||||||
contentAlignment = Alignment.Center
|
// contentAlignment = Alignment.Center
|
||||||
) {
|
// ) {
|
||||||
Column(
|
// Column(
|
||||||
horizontalAlignment = Alignment.CenterHorizontally
|
// horizontalAlignment = Alignment.CenterHorizontally
|
||||||
) {
|
// ) {
|
||||||
LinearProgressIndicator(
|
// LinearProgressIndicator(
|
||||||
modifier = Modifier.width(160.dp),
|
// modifier = Modifier.width(160.dp),
|
||||||
color = AppColors.main
|
// color = AppColors.main
|
||||||
)
|
// )
|
||||||
Spacer(modifier = Modifier.height(8.dp))
|
// Spacer(modifier = Modifier.height(8.dp))
|
||||||
Text(
|
// Text(
|
||||||
text = "Loading...",
|
// text = "Loading...",
|
||||||
fontSize = 14.sp
|
// fontSize = 14.sp
|
||||||
)
|
// )
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
if (commentsPagging.loadState.append is LoadState.Loading) {
|
if (commentsPagging.loadState.append is LoadState.Loading) {
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
|||||||
Reference in New Issue
Block a user