From 37127b7bc91ad71f29278dd4774a444a67b504f9 Mon Sep 17 00:00:00 2001 From: OneWay Date: Tue, 6 Oct 2026 11:10:19 +0800 Subject: [PATCH] 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. --- .../main/java/com/example/research/ui/about/AboutScreen.kt | 7 ++++--- app/src/main/res/values-ru/strings.xml | 1 - app/src/main/res/values/strings.xml | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/example/research/ui/about/AboutScreen.kt b/app/src/main/java/com/example/research/ui/about/AboutScreen.kt index aacc9ff..bc55f6f 100644 --- a/app/src/main/java/com/example/research/ui/about/AboutScreen.kt +++ b/app/src/main/java/com/example/research/ui/about/AboutScreen.kt @@ -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() ) } diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 3c69942..ef0cc31 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -2,7 +2,6 @@ ReSearch Настройки Назад - v%1$s неизвестно Отмена ОК diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index fe14c7c..b9e55d4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2,7 +2,6 @@ ReSearch Settings Back - v%1$s unknown Cancel OK