From 11cc789e3618a8f9296ca2040bf455393b677705 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 29 Oct 2022 23:20:35 -0400 Subject: [PATCH] Center global search prompt properly in library list mode --- .../kanade/presentation/library/components/LibraryList.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/presentation/library/components/LibraryList.kt b/app/src/main/java/eu/kanade/presentation/library/components/LibraryList.kt index 067033644..97ec5b412 100644 --- a/app/src/main/java/eu/kanade/presentation/library/components/LibraryList.kt +++ b/app/src/main/java/eu/kanade/presentation/library/components/LibraryList.kt @@ -2,6 +2,7 @@ package eu.kanade.presentation.library.components import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.lazy.items import androidx.compose.material3.Text import androidx.compose.material3.TextButton @@ -39,7 +40,10 @@ fun LibraryList( ) { item { if (searchQuery.isNullOrEmpty().not()) { - TextButton(onClick = onGlobalSearchClicked) { + TextButton( + modifier = Modifier.fillMaxWidth(), + onClick = onGlobalSearchClicked, + ) { Text( text = stringResource(R.string.action_global_search_query, searchQuery!!), modifier = Modifier.zIndex(99f),