From a8928295617e27731a281378c6d47207910779c2 Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Tue, 31 May 2022 02:59:00 +0200 Subject: [PATCH] Fix: Expand button's alignment in HtmlTextBlock --- .../ui/compose/pages/app_detail/components/TextBlock.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/looker/droidify/ui/compose/pages/app_detail/components/TextBlock.kt b/src/main/kotlin/com/looker/droidify/ui/compose/pages/app_detail/components/TextBlock.kt index 1ba48c8f..e9a6d31e 100644 --- a/src/main/kotlin/com/looker/droidify/ui/compose/pages/app_detail/components/TextBlock.kt +++ b/src/main/kotlin/com/looker/droidify/ui/compose/pages/app_detail/components/TextBlock.kt @@ -35,7 +35,7 @@ fun HtmlTextBlock( ) { Column( modifier = modifier.fillMaxWidth(), - horizontalAlignment = Alignment.Start + horizontalAlignment = Alignment.CenterHorizontally ) { var isExpanded by remember { mutableStateOf(false) } Surface( @@ -49,6 +49,7 @@ fun HtmlTextBlock( ) HtmlText( modifier = Modifier + .fillMaxWidth() .padding(16.dp) .animateContentSize(), text = description, @@ -63,4 +64,4 @@ fun HtmlTextBlock( } } } -} \ No newline at end of file +}