Ensure EmptyScreen is scrollable

Also fix padding for loading/empty states in BrowseSourceScreen

(cherry picked from commit 1dd62af188b49586413ad41857be456c856c17dd)
This commit is contained in:
arkon
2023-03-29 22:53:58 -04:00
committed by Jobobby04
parent 4e1f74d24b
commit 279bddee29
2 changed files with 10 additions and 2 deletions
@@ -86,6 +86,7 @@ fun BrowseSourceContent(
if (mangaList.itemCount <= 0 && errorState != null && errorState is LoadState.Error) {
EmptyScreen(
modifier = Modifier.padding(contentPadding),
message = getErrorMessage(errorState),
actions = if (source is LocalSource /* SY --> */ && onLocalSourceHelpClick != null /* SY <-- */) {
listOf(
@@ -130,7 +131,9 @@ fun BrowseSourceContent(
}
if (mangaList.itemCount == 0 && mangaList.loadState.refresh is LoadState.Loading) {
LoadingScreen()
LoadingScreen(
modifier = Modifier.padding(contentPadding),
)
return
}