Fixing weird alignment of the Hightligh post title.

This commit is contained in:
Vitor Pamplona
2023-10-28 15:38:59 -04:00
parent 0e51731f69
commit 712d498788
2 changed files with 3 additions and 8 deletions
@@ -32,14 +32,8 @@ class Amethyst : Application() {
) )
StrictMode.setVmPolicy( StrictMode.setVmPolicy(
VmPolicy.Builder() VmPolicy.Builder()
.detectActivityLeaks() .detectAll()
.detectFileUriExposure()
.detectContentUriWithoutPermission()
.detectLeakedClosableObjects()
.detectLeakedRegistrationObjects()
.detectLeakedSqlLiteObjects()
.penaltyLog() .penaltyLog()
// .penaltyDeath()
.build() .build()
) )
} }
@@ -2919,6 +2919,7 @@ fun DisplayHighlight(
DisplayQuoteAuthor(authorHex ?: "", url, postAddress, accountViewModel, nav) DisplayQuoteAuthor(authorHex ?: "", url, postAddress, accountViewModel, nav)
} }
@OptIn(ExperimentalLayoutApi::class)
@Composable @Composable
private fun DisplayQuoteAuthor( private fun DisplayQuoteAuthor(
authorHex: String, authorHex: String,
@@ -2938,7 +2939,7 @@ private fun DisplayQuoteAuthor(
} }
MeasureSpaceWidth { MeasureSpaceWidth {
Row(horizontalArrangement = Arrangement.spacedBy(it), verticalAlignment = Alignment.CenterVertically) { FlowRow(horizontalArrangement = Arrangement.spacedBy(it), verticalArrangement = Arrangement.Center) {
userBase?.let { userBase -> userBase?.let { userBase ->
LoadAndDisplayUser(userBase, nav) LoadAndDisplayUser(userBase, nav)
} }