fix(about): correct the version display

Drop the v prefix so the version shows as a plain version name, and
align it by baseline with the app name instead of the bottom edge of
the headline line box.
This commit is contained in:
OneWay committed 2026-10-06 11:10:19 +08:00
1 parent 84fcd77f02
commit 37127b7bc9
3 files changed
+4 -5

No files matched your search

@@ -156,13 +156,14 @@ private fun AboutHeader(versionName: String) {
Text(
text = stringResource(R.string.app_name),
style = MaterialTheme.typography.headlineMedium,
color = MaterialTheme.colorScheme.onSurface
color = MaterialTheme.colorScheme.onSurface,
modifier = Modifier.alignByBaseline()
)
Text(
text = stringResource(R.string.version_format, versionName),
text = versionName,
style = MaterialTheme.typography.titleMedium,
color = MaterialTheme.colorScheme.onSurfaceVariant,
modifier = Modifier.padding(bottom = 2.dp)
modifier = Modifier.alignByBaseline()
)
}