feat(qol): smoothen up member list open
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
77af591fa1
commit
f40a7f1b52
|
|
@ -3,6 +3,7 @@ package chat.revolt.sheets
|
||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
|
import androidx.compose.animation.animateContentSize
|
||||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||||
import androidx.compose.foundation.combinedClickable
|
import androidx.compose.foundation.combinedClickable
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
|
|
@ -288,19 +289,19 @@ fun MemberListSheet(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (viewModel.fullItemList.isEmpty()) {
|
Column(Modifier.animateContentSize()) {
|
||||||
Box(
|
if (viewModel.fullItemList.isEmpty()) {
|
||||||
modifier = Modifier
|
Box(
|
||||||
.fillMaxWidth()
|
modifier = Modifier
|
||||||
.height(200.dp)
|
.fillMaxWidth()
|
||||||
) {
|
.height(200.dp)
|
||||||
CircularProgressIndicator(modifier = Modifier.align(Alignment.Center))
|
) {
|
||||||
|
CircularProgressIndicator(modifier = Modifier.align(Alignment.Center))
|
||||||
|
}
|
||||||
|
SheetEnd()
|
||||||
|
return@Column
|
||||||
}
|
}
|
||||||
SheetEnd()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
Column {
|
|
||||||
SheetHeaderPadding {
|
SheetHeaderPadding {
|
||||||
Text(
|
Text(
|
||||||
text = stringResource(R.string.channel_info_sheet_options_members),
|
text = stringResource(R.string.channel_info_sheet_options_members),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue