Fix: Expand button's alignment in HtmlTextBlock

This commit is contained in:
machiav3lli 2022-05-31 02:59:00 +02:00
parent b2bbe1822b
commit a892829561

View File

@ -35,7 +35,7 @@ fun HtmlTextBlock(
) { ) {
Column( Column(
modifier = modifier.fillMaxWidth(), modifier = modifier.fillMaxWidth(),
horizontalAlignment = Alignment.Start horizontalAlignment = Alignment.CenterHorizontally
) { ) {
var isExpanded by remember { mutableStateOf(false) } var isExpanded by remember { mutableStateOf(false) }
Surface( Surface(
@ -49,6 +49,7 @@ fun HtmlTextBlock(
) )
HtmlText( HtmlText(
modifier = Modifier modifier = Modifier
.fillMaxWidth()
.padding(16.dp) .padding(16.dp)
.animateContentSize(), .animateContentSize(),
text = description, text = description,