Skip to content

Commit

Permalink
Merge pull request #27 from Sam-muigai/feature/no-word-split-ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyodhiambo committed Oct 9, 2023
2 parents 4dc7064 + 727834d commit ba37ce8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 ba37ce8

Please sign in to comment.