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
27
27
import androidx.compose.ui.layout.ContentScale
28
28
import androidx.compose.ui.platform.LocalContext
29
29
import androidx.compose.ui.text.font.FontWeight
30
+ import androidx.compose.ui.text.style.TextOverflow
30
31
import androidx.compose.ui.unit.dp
31
32
import androidx.compose.ui.unit.sp
32
33
import androidx.hilt.navigation.compose.hiltViewModel
@@ -212,7 +213,9 @@ private fun ChatItem(
212
213
} else {
213
214
MaterialTheme .colorScheme.onSurface
214
215
},
215
- modifier = Modifier .padding(start = 12 .dp)
216
+ modifier = Modifier .padding(start = 12 .dp),
217
+ maxLines = 1 ,
218
+ overflow = TextOverflow .Ellipsis ,
216
219
)
217
220
}
218
221
}
You can’t perform that action at this time.
0 commit comments