Skip to content

Commit

Permalink
[#302] OdsSmallCard title is now single line and truncated if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
florentmaitre committed Dec 15, 2022
1 parent 55872b8 commit aaff314
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- \[Demo\] Fix list item trailing icon vocalization and display ([#337](https://github.com/Orange-OpenSource/ods-android/issues/337))
- \[Lib\] Fix top app bar overflow menu colors ([#349](https://github.com/Orange-OpenSource/ods-android/issues/349))
- \[Lib\] `OdsSmallCard` title is now single line and truncated if needed ([#302](https://github.com/Orange-OpenSource/ods-android/issues/302))

## [0.8.0](https://github.com/Orange-OpenSource/ods-android/compare/0.7.0...0.8.0) - 2022-12-07

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.text.style.TextOverflow
import com.orange.ods.R
import com.orange.ods.compose.component.OdsComponentApi
import com.orange.ods.compose.component.utilities.Preview
Expand Down Expand Up @@ -87,7 +88,9 @@ fun OdsSmallCard(
) {
Text(
text = title,
style = OdsTheme.typography.h6
style = OdsTheme.typography.h6,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
subtitle?.let {
Text(
Expand Down

0 comments on commit aaff314

Please sign in to comment.