From 2896b47dc6d4106dc517dc90eab7fd000c5c474f Mon Sep 17 00:00:00 2001 From: HapeLee <63206378+HapeLee@users.noreply.github.com> Date: Thu, 28 May 2026 19:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B9=A6=E6=9E=B6=E9=A1=B5?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=A4=B1=E6=95=88=E5=92=8C=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E9=94=99=E4=BD=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/main/bookshelf/BookshelfScreen.kt | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfScreen.kt b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfScreen.kt index bd4c54c54..0c5b10c38 100644 --- a/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfScreen.kt +++ b/app/src/main/java/io/legado/app/ui/main/bookshelf/BookshelfScreen.kt @@ -846,9 +846,9 @@ fun BookshelfScreen( val group = uiState.groups.getOrNull(pageIndex) if (group != null) { val isSelectedGroup = group.groupId == uiState.selectedGroupId - val books = uiState.allGroupBooks[group.groupId] - ?: if (isSelectedGroup) uiState.items - else persistentListOf() + val books = if (isSelectedGroup) uiState.items + else uiState.allGroupBooks[group.groupId] + ?: persistentListOf() val canReorderBooks = isEditMode && !uiState.isSearch && (group.bookSort.takeIf { it >= 0 } @@ -1052,17 +1052,10 @@ private fun BookshelfTopBar( query = uiState.searchKey, onQueryChange = onSearchQueryChange, onSearch = onSearchSubmit, - placeholder = stringResource(R.string.input_search_key), - leadingIcon = { - AppIcon( - imageVector = AppIcons.Search, - contentDescription = null - ) - }, trailingIcon = { if (uiState.searchKey.isNotEmpty()) { SmallPlainButton( - modifier = Modifier.padding(start = 12.dp), + modifier = Modifier.padding(horizontal = 4.dp), onClick = onClearSearch, icon = AppIcons.Close, contentDescription = stringResource(R.string.clear)