@@ -17,7 +17,7 @@ import no.nordicsemi.android.theme.R
17
17
@Composable
18
18
fun CloseIconAppBar (text : String , onClick : () -> Unit ) {
19
19
SmallTopAppBar (
20
- title = { Text (text) },
20
+ title = { Text (text, maxLines = 2 ) },
21
21
colors = TopAppBarDefaults .smallTopAppBarColors(
22
22
scrolledContainerColor = MaterialTheme .colorScheme.primary,
23
23
containerColor = colorResource(id = R .color.appBarColor),
@@ -39,7 +39,7 @@ fun CloseIconAppBar(text: String, onClick: () -> Unit) {
39
39
@Composable
40
40
fun TitleAppBar (text : String ) {
41
41
SmallTopAppBar (
42
- title = { Text (text) },
42
+ title = { Text (text, maxLines = 2 ) },
43
43
colors = TopAppBarDefaults .smallTopAppBarColors(
44
44
scrolledContainerColor = MaterialTheme .colorScheme.primary,
45
45
containerColor = colorResource(id = R .color.appBarColor),
@@ -53,7 +53,7 @@ fun TitleAppBar(text: String) {
53
53
@Composable
54
54
fun LoggerBackIconAppBar (text : String , onClick : () -> Unit ) {
55
55
SmallTopAppBar (
56
- title = { Text (text) },
56
+ title = { Text (text, maxLines = 2 ) },
57
57
colors = TopAppBarDefaults .smallTopAppBarColors(
58
58
scrolledContainerColor = MaterialTheme .colorScheme.primary,
59
59
containerColor = colorResource(id = R .color.appBarColor),
@@ -86,7 +86,7 @@ fun LoggerBackIconAppBar(text: String, onClick: () -> Unit) {
86
86
@Composable
87
87
fun BackIconAppBar (text : String , onClick : () -> Unit ) {
88
88
SmallTopAppBar (
89
- title = { Text (text) },
89
+ title = { Text (text, maxLines = 2 ) },
90
90
colors = TopAppBarDefaults .smallTopAppBarColors(
91
91
scrolledContainerColor = MaterialTheme .colorScheme.primary,
92
92
containerColor = colorResource(id = R .color.appBarColor),
@@ -109,7 +109,7 @@ fun BackIconAppBar(text: String, onClick: () -> Unit) {
109
109
@Composable
110
110
fun LoggerIconAppBar (text : String , onClick : () -> Unit , onDisconnectClick : () -> Unit , onLoggerClick : () -> Unit ) {
111
111
SmallTopAppBar (
112
- title = { Text (text) },
112
+ title = { Text (text, maxLines = 2 ) },
113
113
colors = TopAppBarDefaults .smallTopAppBarColors(
114
114
scrolledContainerColor = MaterialTheme .colorScheme.primary,
115
115
containerColor = colorResource(id = R .color.appBarColor),
0 commit comments