format modification for screen search

pull/913/head
hoangchungk53qx1 1 year ago
parent 70498dd6e3
commit 66eafdc38b

@ -312,7 +312,11 @@ private fun SearchResultBody(
state = state,
) {
if (topics.isNotEmpty()) {
item(span = { GridItemSpan(maxLineSpan) }) {
item(
span = {
GridItemSpan(maxLineSpan)
},
) {
Text(
text = buildAnnotatedString {
withStyle(style = SpanStyle(fontWeight = FontWeight.Bold)) {
@ -326,7 +330,9 @@ private fun SearchResultBody(
val topicId = followableTopic.topic.id
item(
key = "topic-$topicId", // Append a prefix to distinguish a key for news resources
span = { GridItemSpan(maxLineSpan) },
span = {
GridItemSpan(maxLineSpan)
},
) {
InterestsItem(
name = followableTopic.topic.name,
@ -345,7 +351,11 @@ private fun SearchResultBody(
}
if (newsResources.isNotEmpty()) {
item(span = { GridItemSpan(maxLineSpan) }) {
item(
span = {
GridItemSpan(maxLineSpan)
},
) {
Text(
text = buildAnnotatedString {
withStyle(style = SpanStyle(fontWeight = FontWeight.Bold)) {

Loading…
Cancel
Save