File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
app/src/main/java/io/shubham0204/smollmandroid/ui Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import androidx.compose.material3.Text
2121import androidx.compose.runtime.Composable
2222import androidx.compose.ui.Modifier
2323import androidx.compose.ui.text.font.FontWeight
24+ import androidx.compose.ui.text.style.TextOverflow
2425
2526@Composable
2627fun MediumLabelText (
@@ -56,5 +57,7 @@ fun AppBarTitleText(
5657 style = MaterialTheme .typography.titleMedium,
5758 modifier = modifier,
5859 fontWeight = FontWeight .Bold ,
60+ maxLines = 1 ,
61+ overflow = TextOverflow .Ellipsis ,
5962 )
6063}
Original file line number Diff line number Diff line change @@ -233,10 +233,12 @@ fun ChatActivityScreenUI(
233233 topBar = {
234234 TopAppBar (
235235 title = {
236- Column (modifier = Modifier .fillMaxWidth()) {
236+ Column (
237+ modifier = Modifier .fillMaxWidth(),
238+ horizontalAlignment = Alignment .CenterHorizontally ,
239+ ) {
237240 AppBarTitleText (
238241 currChat?.name ? : stringResource(R .string.chat_select_chat),
239- modifier = Modifier .fillMaxWidth(),
240242 )
241243 Text (
242244 if (currChat != null && currChat?.llmModelId != - 1L ) {
@@ -246,7 +248,7 @@ fun ChatActivityScreenUI(
246248 } else {
247249 " "
248250 },
249- fontSize = 12 .sp ,
251+ style = MaterialTheme .typography.labelSmall ,
250252 )
251253 }
252254 },
You can’t perform that action at this time.
0 commit comments