Skip to content

Commit

Permalink
Update BpkHorizontalNav component (#2167)
Browse files Browse the repository at this point in the history
Co-authored-by: jacobhuang <[email protected]>
  • Loading branch information
jacobhuang0121 and JacobHuang0121-wq authored Dec 18, 2024
1 parent b550fd3 commit 1eab3e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.scale
import androidx.compose.ui.semantics.Role
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.LayoutDirection
import androidx.compose.ui.unit.dp
Expand Down Expand Up @@ -99,6 +100,8 @@ fun BpkHorizontalNav(
BpkHorizontalNavSize.Default -> BpkTheme.typography.label1
BpkHorizontalNavSize.Small -> BpkTheme.typography.label2
},
overflow = TextOverflow.Ellipsis,
maxLines = 1,
)
}
}
Expand Down

0 comments on commit 1eab3e8

Please sign in to comment.