format modification for screen search

pull/1837/head
hoangchungk53qx1 2 years ago
parent f6a36e1f66
commit 42895e06a8

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

Loading…
Cancel
Save