Skip to content

Commit

Permalink
Fixed about title alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
sirekanian committed Dec 31, 2023
1 parent 916f5e3 commit eecdffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/sirekanyan/outline/ui/AboutDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.text.withStyle
import androidx.compose.ui.unit.dp
Expand All @@ -43,7 +44,7 @@ fun AboutDialogContent(onDismiss: () -> Unit) {
val appVersion = BuildConfig.VERSION_NAME
AlertDialog(
icon = { Icon(Icons.Default.Info, null) },
title = { Text("$appName $appVersion") },
title = { Text("$appName $appVersion", textAlign = TextAlign.Center) },
text = {
val context = LocalContext.current
val annotatedString = buildAnnotatedString {
Expand Down

0 comments on commit eecdffb

Please sign in to comment.