fix(SearchPost): 无法跳转原贴
This commit is contained in:
parent
972025344d
commit
e24649efe9
|
|
@ -71,6 +71,7 @@ import kotlin.math.min
|
||||||
fun QuotePostCard(
|
fun QuotePostCard(
|
||||||
quotePostInfo: SearchThreadBean.PostInfo,
|
quotePostInfo: SearchThreadBean.PostInfo,
|
||||||
mainPost: SearchThreadBean.MainPost,
|
mainPost: SearchThreadBean.MainPost,
|
||||||
|
onMainPostClick: (SearchThreadBean.MainPost) -> Unit,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
medias: ImmutableList<SearchThreadBean.MediaInfo> = persistentListOf(),
|
medias: ImmutableList<SearchThreadBean.MediaInfo> = persistentListOf(),
|
||||||
keyword: String? = null,
|
keyword: String? = null,
|
||||||
|
|
@ -99,7 +100,10 @@ fun QuotePostCard(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.clip(RoundedCornerShape(6.dp))
|
.clip(RoundedCornerShape(6.dp))
|
||||||
.background(ExtendedTheme.colors.card),
|
.background(ExtendedTheme.colors.card)
|
||||||
|
.clickable {
|
||||||
|
onMainPostClick(mainPost)
|
||||||
|
},
|
||||||
medias = medias,
|
medias = medias,
|
||||||
keyword = keyword
|
keyword = keyword
|
||||||
)
|
)
|
||||||
|
|
@ -252,6 +256,7 @@ fun SearchThreadItem(
|
||||||
QuotePostCard(
|
QuotePostCard(
|
||||||
quotePostInfo = item.postInfo,
|
quotePostInfo = item.postInfo,
|
||||||
mainPost = item.mainPost,
|
mainPost = item.mainPost,
|
||||||
|
onMainPostClick = onMainPostClick,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.clip(RoundedCornerShape(6.dp))
|
.clip(RoundedCornerShape(6.dp))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue