fix: 刷新提示位置

This commit is contained in:
HuanCheng65 2023-10-05 14:49:28 +08:00
parent 131376f183
commit dc188b9d2d
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
1 changed files with 34 additions and 32 deletions

View File

@ -327,46 +327,48 @@ private fun FeedList(
enter = EnterTransition.None,
exit = shrinkVertically() + fadeOut()
) {
BlockableContent(
blocked = blocked,
blockedTip = { BlockTip(text = { Text(text = stringResource(id = R.string.tip_blocked_thread)) }) },
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 8.dp, horizontal = 16.dp)
) {
Column {
FeedCard(
item = item,
onClick = onItemClick,
onReplyClick = onItemReplyClick,
onAgree = onAgree,
onClickForum = remember {
{
onOpenForum(it.name)
Column {
BlockableContent(
blocked = blocked,
blockedTip = { BlockTip(text = { Text(text = stringResource(id = R.string.tip_blocked_thread)) }) },
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 8.dp, horizontal = 16.dp)
) {
Column {
FeedCard(
item = item,
onClick = onItemClick,
onReplyClick = onItemReplyClick,
onAgree = onAgree,
onClickForum = remember {
{
onOpenForum(it.name)
}
}
) {
if (personalized != null) {
Dislike(
personalized = personalized,
onDislike = { clickTime, reasons ->
onDislike(item.get(), clickTime, reasons)
}
)
}
}
) {
if (personalized != null) {
Dislike(
personalized = personalized,
onDislike = { clickTime, reasons ->
onDislike(item.get(), clickTime, reasons)
}
if (showDivider) {
VerticalDivider(
modifier = Modifier.padding(horizontal = 16.dp),
thickness = 2.dp
)
}
}
if (showDivider) {
VerticalDivider(
modifier = Modifier.padding(horizontal = 16.dp),
thickness = 2.dp
)
}
}
if (isRefreshPosition) {
RefreshTip(onRefresh)
}
}
}
if (isRefreshPosition) {
RefreshTip(onRefresh)
}
}
}
}