Skip to content

Commit

Permalink
Merge pull request #690 from Npepperlinux/remove_FAIcon_and_Text_overlap
Browse files Browse the repository at this point in the history
Remove FAIcon and Text overlap in List Screen
  • Loading branch information
Tlaster authored Jan 28, 2025
2 parents b143289 + 2372ba0 commit 6ab0b9d
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions app/src/main/java/dev/dimension/flare/ui/screen/list/ListScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,21 @@ internal fun LazyListScope.listItemComponent(
modifier = Modifier.fillParentMaxSize(),
contentAlignment = Alignment.Center,
) {
FAIcon(
imageVector = FontAwesomeIcons.Solid.List,
contentDescription = stringResource(id = R.string.list_empty),
modifier = Modifier.size(48.dp),
)
Text(
text = stringResource(id = R.string.list_empty),
style = MaterialTheme.typography.headlineMedium,
)
Column(
modifier = Modifier.fillParentMaxSize(),
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.spacedBy(8.dp),
) {
FAIcon(
imageVector = FontAwesomeIcons.Solid.List,
contentDescription = stringResource(id = R.string.list_empty),
modifier = Modifier.size(48.dp),
)
Text(
text = stringResource(id = R.string.list_empty),
style = MaterialTheme.typography.headlineMedium,
)
}
}
},
loadingContent = {
Expand Down

0 comments on commit 6ab0b9d

Please sign in to comment.