fix(SearchPost): 无法跳转原贴

This commit is contained in:
HuanCheng65 2024-01-29 16:39:05 +08:00
parent 972025344d
commit e24649efe9
No known key found for this signature in database
GPG Key ID: 5EC9DD60A32C7360
1 changed files with 6 additions and 1 deletions

View File

@ -71,6 +71,7 @@ import kotlin.math.min
fun QuotePostCard(
quotePostInfo: SearchThreadBean.PostInfo,
mainPost: SearchThreadBean.MainPost,
onMainPostClick: (SearchThreadBean.MainPost) -> Unit,
modifier: Modifier = Modifier,
medias: ImmutableList<SearchThreadBean.MediaInfo> = persistentListOf(),
keyword: String? = null,
@ -99,7 +100,10 @@ fun QuotePostCard(
modifier = Modifier
.fillMaxWidth()
.clip(RoundedCornerShape(6.dp))
.background(ExtendedTheme.colors.card),
.background(ExtendedTheme.colors.card)
.clickable {
onMainPostClick(mainPost)
},
medias = medias,
keyword = keyword
)
@ -252,6 +256,7 @@ fun SearchThreadItem(
QuotePostCard(
quotePostInfo = item.postInfo,
mainPost = item.mainPost,
onMainPostClick = onMainPostClick,
modifier = Modifier
.fillMaxWidth()
.clip(RoundedCornerShape(6.dp))