mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
Fix broken preview of BottomSheet in Android Studio.
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -160,7 +160,7 @@ internal fun CreateDmConfirmationBottomSheetPreview(
|
||||
@PreviewParameter(
|
||||
CreateDmConfirmationBottomSheetStateProvider::class
|
||||
) state: CreateDmConfirmationBottomSheetState
|
||||
) = ElementPreview {
|
||||
) = ElementPreview(fillMaxSize = true) {
|
||||
CreateDmConfirmationBottomSheet(
|
||||
matrixUser = state.matrixUser,
|
||||
isUserIdentityUnknown = state.isUserIdentityUnknown,
|
||||
|
||||
Reference in New Issue
Block a user