Fix broken preview of BottomSheet in Android Studio.

This commit is contained in:
Benoit Marty
2026-06-19 14:04:46 +02:00
parent e98cbdfce1
commit 123037a612
11 changed files with 29 additions and 16 deletions
@@ -115,7 +115,7 @@ private fun AvatarActionBottomSheetContent(
@PreviewsDayNight
@Composable
internal fun AvatarActionBottomSheetPreview() = ElementPreview {
internal fun AvatarActionBottomSheetPreview() = ElementPreview(fillMaxSize = true) {
AvatarActionBottomSheet(
actions = persistentListOf(AvatarAction.TakePhoto, AvatarAction.ChoosePhoto, AvatarAction.Remove),
isVisible = true,
@@ -160,7 +160,7 @@ internal fun CreateDmConfirmationBottomSheetPreview(
@PreviewParameter(
CreateDmConfirmationBottomSheetStateProvider::class
) state: CreateDmConfirmationBottomSheetState
) = ElementPreview {
) = ElementPreview(fillMaxSize = true) {
CreateDmConfirmationBottomSheet(
matrixUser = state.matrixUser,
isUserIdentityUnknown = state.isUserIdentityUnknown,