mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Improve preview again
This commit is contained in:
+8
-4
@@ -143,13 +143,17 @@ private fun ContentToPreview(state: BubbleState) {
|
|||||||
interactionSource = MutableInteractionSource(),
|
interactionSource = MutableInteractionSource(),
|
||||||
) {
|
) {
|
||||||
// Render the state as a text to better understand the previews
|
// Render the state as a text to better understand the previews
|
||||||
Text(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.size(width = 120.dp, height = 32.dp)
|
.size(width = 120.dp, height = 32.dp)
|
||||||
.padding(horizontal = 12.dp, vertical = 6.dp),
|
.padding(horizontal = 12.dp, vertical = 6.dp),
|
||||||
fontSize = 10.sp,
|
contentAlignment = Alignment.Center,
|
||||||
text = "${state.groupPosition.javaClass.simpleName} m:${state.isMine.to01()} h:${state.isHighlighted.to01()}"
|
) {
|
||||||
)
|
Text(
|
||||||
|
fontSize = 10.sp,
|
||||||
|
text = "${state.groupPosition.javaClass.simpleName} m:${state.isMine.to01()} h:${state.isHighlighted.to01()}"
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user