File tree Expand file tree Collapse file tree
api_viewing/src/main/kotlin/com/madness/collision/unit/api_viewing/ui/org Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ import androidx.compose.ui.graphics.Color
4646import androidx.compose.ui.graphics.vector.ImageVector
4747import androidx.compose.ui.platform.LocalContext
4848import androidx.compose.ui.res.stringResource
49+ import androidx.compose.ui.text.style.TextOverflow
4950import androidx.compose.ui.unit.dp
5051import androidx.lifecycle.compose.collectAsStateWithLifecycle
5152import androidx.lifecycle.viewmodel.compose.viewModel
@@ -118,7 +119,13 @@ private fun GroupScaffold(
118119 Scaffold (
119120 topBar = {
120121 ClassicTopAppBar (
121- title = { Text (title) },
122+ title = {
123+ Text (
124+ text = title,
125+ overflow = TextOverflow .Ellipsis ,
126+ maxLines = 1 ,
127+ )
128+ },
122129 windowInsets = topBarInsets
123130 .only(WindowInsetsSides .Horizontal + WindowInsetsSides .Top ),
124131 )
Original file line number Diff line number Diff line change @@ -159,7 +159,13 @@ private fun GroupScaffold(
159159 Scaffold (
160160 topBar = {
161161 ClassicTopAppBar (
162- title = { Text (title) },
162+ title = {
163+ Text (
164+ text = title,
165+ overflow = TextOverflow .Ellipsis ,
166+ maxLines = 1 ,
167+ )
168+ },
163169 actions = {
164170 IconButton (onClick = onActionEdit) {
165171 Icon (
You can’t perform that action at this time.
0 commit comments