File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/src/main/java/com/chatgptlite/wanted/ui/common Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import androidx.compose.ui.graphics.vector.ImageVector
2727import androidx.compose.ui.layout.ContentScale
2828import androidx.compose.ui.platform.LocalContext
2929import androidx.compose.ui.text.font.FontWeight
30+ import androidx.compose.ui.text.style.TextOverflow
3031import androidx.compose.ui.unit.dp
3132import androidx.compose.ui.unit.sp
3233import androidx.hilt.navigation.compose.hiltViewModel
@@ -212,7 +213,9 @@ private fun ChatItem(
212213 } else {
213214 MaterialTheme .colorScheme.onSurface
214215 },
215- modifier = Modifier .padding(start = 12 .dp)
216+ modifier = Modifier .padding(start = 12 .dp),
217+ maxLines = 1 ,
218+ overflow = TextOverflow .Ellipsis ,
216219 )
217220 }
218221}
You can’t perform that action at this time.
0 commit comments