Improve preview again

This commit is contained in:
Benoit Marty
2023-05-30 11:07:55 +02:00
parent 67542ad867
commit 1a8e7d7d59

View File

@@ -143,13 +143,17 @@ private fun ContentToPreview(state: BubbleState) {
interactionSource = MutableInteractionSource(),
) {
// Render the state as a text to better understand the previews
Text(
Box(
modifier = Modifier
.size(width = 120.dp, height = 32.dp)
.padding(horizontal = 12.dp, vertical = 6.dp),
fontSize = 10.sp,
text = "${state.groupPosition.javaClass.simpleName} m:${state.isMine.to01()} h:${state.isHighlighted.to01()}"
)
contentAlignment = Alignment.Center,
) {
Text(
fontSize = 10.sp,
text = "${state.groupPosition.javaClass.simpleName} m:${state.isMine.to01()} h:${state.isHighlighted.to01()}"
)
}
}
}
}