Merge pull request #6048 from element-hq/renovate/app.cash.paparazzi-2.x

chore(deps): update plugin paparazzi to v2.0.0-alpha04
This commit is contained in:
Benoit Marty 2026-02-10 16:42:54 +01:00 committed by GitHub
commit b0a4ce44f0
2715 changed files with 5425 additions and 5416 deletions

View file

@ -114,8 +114,10 @@ private fun ReactionSummaryViewContent(
LaunchedEffect(pagerState.currentPage) {
selectedReactionKey = summary.reactions[pagerState.currentPage].key
val visibleInfo = reactionListState.layoutInfo.visibleItemsInfo
if (selectedReactionIndex <= visibleInfo.first().index || selectedReactionIndex >= visibleInfo.last().index) {
reactionListState.animateScrollToItem(selectedReactionIndex)
if (visibleInfo.isNotEmpty()) {
if (selectedReactionIndex <= visibleInfo.first().index || selectedReactionIndex >= visibleInfo.last().index) {
reactionListState.animateScrollToItem(selectedReactionIndex)
}
}
}

View file

@ -32,7 +32,12 @@ open class DeveloperSettingsStateProvider : PreviewParameterProvider<DeveloperSe
),
aDeveloperSettingsState(
isEnterpriseBuild = true,
showColorPicker = true,
// Disable the color picker for now, Paparazzi is failing with:
// java.lang.IllegalArgumentException: Cannot round NaN value.
// at kotlin.math.MathKt__MathJVMKt.roundToInt(MathJVM.kt:1210)
// at io.mhssn.colorpicker.ext.ColorExtKt.lighten(ColorExt.kt:86)
// at io.mhssn.colorpicker.pickers.ClassicColorPickerKt$ClassicColorPicker$1$1.invokeSuspend(ClassicColorPicker.kt:53)
showColorPicker = false,
),
)
}