From d0c558fec588771f483e2f6c8d13a0fedf873ae2 Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Tue, 24 Jan 2023 13:37:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B4=B4=E5=AD=90=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tieba/post/ui/widgets/compose/FeedCard.kt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ui/widgets/compose/FeedCard.kt b/app/src/main/java/com/huanchengfly/tieba/post/ui/widgets/compose/FeedCard.kt index b5100159..674de27a 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ui/widgets/compose/FeedCard.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ui/widgets/compose/FeedCard.kt @@ -202,6 +202,17 @@ private val ThreadTitle: @Composable ColumnScope.(ThreadInfo) -> Unit = { append(" ") } + if (it.tabName.isNotBlank()) { + withStyle( + style = SpanStyle( + fontWeight = FontWeight.Bold, + ) + ) { + append(it.tabName) + } + append(" | ") + } + append(it.title) } @@ -223,7 +234,6 @@ fun FeedCard( onAgree: () -> Unit, dislikeAction: @Composable () -> Unit = {}, ) { - val context = LocalContext.current Card( header = { if (item.author != null) {