Ensure EmptyScreen is scrollable
Also fix padding for loading/empty states in BrowseSourceScreen (cherry picked from commit 1dd62af188b49586413ad41857be456c856c17dd)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user