Skip to content

Commit

Permalink
Fix/text overflow apps (#852)
Browse files Browse the repository at this point in the history
**Background**

When there's more than two lines of text, the button will fill entire
height

**Changes**

- Add `maxLines=1` as in design

**Test plan**

- Open apps
- Find app with long text
- See that text now has dots instead of next lines
- See that buttons are now the same
  • Loading branch information
makeevrserg authored May 14, 2024
1 parent ff91b52 commit 4db8243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
- [FIX] Settings status bar overflow content
- [FIX] Fix TopBar above system bar in file manager file edit screen
- [FIX] Fix custom version detection
- [FIX] Text overflow on apps card
- [Feature] Add not connected, empty and syncing states to emulation button on key screen
- [Feature] Check app exist on apps catalog manifest loading
- [Feature] First version of device orchestrator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ private fun AppCardTop(
modifier = if (fapItem == null) Modifier.placeholderConnecting() else Modifier,
text = fapItem?.name ?: DEFAULT_NAME,
style = LocalTypography.current.buttonM16,
color = LocalPallet.current.text100
color = LocalPallet.current.text100,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
ComposableAppCategory(
category = fapItem?.category,
Expand Down

0 comments on commit 4db8243

Please sign in to comment.