We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff0ea3 commit a463df6Copy full SHA for a463df6
app/src/main/java/to/bitkit/ui/components/Text.kt
@@ -87,10 +87,14 @@ fun Title(
87
text: String,
88
modifier: Modifier = Modifier,
89
color: Color = MaterialTheme.colorScheme.primary,
90
+ maxLines: Int = Int.MAX_VALUE,
91
+ overflow: TextOverflow = TextOverflow.Ellipsis,
92
textAlign: TextAlign = TextAlign.Unspecified,
93
) {
94
Text(
95
text = text,
96
+ maxLines = maxLines,
97
+ overflow = overflow,
98
style = AppTextStyles.Title.merge(
99
color = color,
100
textAlign = textAlign,
app/src/main/java/to/bitkit/ui/scaffold/AppTopBar.kt
@@ -58,7 +58,7 @@ fun AppTopBar(
58
.size(32.dp)
59
)
60
}
61
- Title(text = titleText)
+ Title(text = titleText, maxLines = 1)
62
63
64
},
0 commit comments