manager:Adjust the text display of setting items to allow multi-line text descriptions

This commit is contained in:
ShirkNeko
2025-06-18 00:12:27 +08:00
parent edf7685e9a
commit bfb6ea3613
2 changed files with 6 additions and 6 deletions

View File

@@ -1311,8 +1311,8 @@ fun SettingItem(
Text(
text = title,
style = MaterialTheme.typography.titleMedium,
maxLines = 1,
overflow = TextOverflow.Ellipsis
maxLines = Int.MAX_VALUE,
overflow = TextOverflow.Visible
)
if (subtitle != null) {
Spacer(modifier = Modifier.height(2.dp))
@@ -1320,8 +1320,8 @@ fun SettingItem(
text = subtitle,
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurfaceVariant,
maxLines = 2,
overflow = TextOverflow.Ellipsis
maxLines = Int.MAX_VALUE,
overflow = TextOverflow.Visible
)
}
}