Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyodhiambo committed Oct 9, 2023
2 parents 5ab7c28 + ba37ce8 commit f0ee698
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/brandyodhiambo/quench/ui/MainScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.brandyodhiambo.designsystem.theme.primaryColor
Expand Down Expand Up @@ -135,7 +136,7 @@ fun CustomTab(
pagerState.animateScrollToPage(index)
}
},
text = { Text(text = tabItem.title, fontFamily = roboto) }
text = { Text(text = tabItem.title, maxLines = 1, overflow = TextOverflow.Ellipsis, fontFamily = roboto) }
)
}
}
Expand Down

0 comments on commit f0ee698

Please sign in to comment.