This commit is contained in:
HapeLee
2026-05-27 02:00:23 +08:00
parent dccee3b210
commit 134118011a
3 changed files with 11 additions and 33 deletions
@@ -267,6 +267,17 @@ class SearchViewModel(
}
is SearchIntent.OpenExpandedSourceBook -> {
_uiState.update {
it.copy(
expandedSourceUrl = null,
expandedSourceName = null,
expandedSourceBooks = persistentListOf(),
expandedSourceLoading = false,
expandedSourceEnd = false,
expandedSourceError = null,
expandedSourcePage = 1,
)
}
emitEffect(
SearchEffect.OpenBookInfo(
name = intent.book.name,
@@ -68,17 +68,6 @@ fun BannerModule(
.combinedClickable(
onClick = { onClick(book, sharedCoverKey) },
onLongClick = onLongClick?.let { cb -> { cb(book, sharedCoverKey) } }
)
.then(
with(sharedTransitionScope) {
if (this != null) {
Modifier.sharedBounds(
sharedContentState = rememberSharedContentState("preview:${book.bookUrl}"),
animatedVisibilityScope = animatedVisibilityScope
?: return@with Modifier,
)
} else Modifier
}
),
sharedTransitionScope = sharedTransitionScope,
animatedVisibilityScope = animatedVisibilityScope,
@@ -64,17 +64,6 @@ fun SearchBookListItem(
) else Modifier
)
.then(if (showPadding) Modifier.adaptiveHorizontalPadding(vertical = 8.dp) else Modifier)
.then(
with(sharedTransitionScope) {
if (this != null) {
Modifier.sharedBounds(
sharedContentState = rememberSharedContentState("preview:${book.bookUrl}"),
animatedVisibilityScope = animatedVisibilityScope
?: return@with Modifier,
)
} else Modifier
}
)
) {
Box(modifier = Modifier
.width(72.dp)
@@ -204,17 +193,6 @@ fun SearchBookGridItem(
onClick = onClick,
onLongClick = onLongClick?.let { cb -> { cb(book, sharedCoverKey) } }
)
.then(
with(sharedTransitionScope) {
if (this != null) {
Modifier.sharedBounds(
sharedContentState = rememberSharedContentState("preview:${book.bookUrl}"),
animatedVisibilityScope = animatedVisibilityScope
?: return@with Modifier,
)
} else Modifier
}
)
) {
Box(
modifier = Modifier