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