Add overflow on home bottombar item.
This commit is contained in:
parent
879753be31
commit
c95360d9f1
1 changed files with 3 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ import androidx.compose.ui.draw.shadow
|
|||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.navigation.NavHostController
|
||||
import androidx.navigation.compose.NavHost
|
||||
|
|
@ -86,6 +87,8 @@ fun HomeNavHost(
|
|||
label = {
|
||||
Text(
|
||||
textAlign = TextAlign.Center,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
text = stringResource(id = item.label)
|
||||
)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue