Skip to content

Commit

Permalink
Prevent title from being multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Jun 14, 2024
1 parent 24810d5 commit a2e177e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.constraintlayout.compose.ConstraintLayout
Expand Down Expand Up @@ -157,6 +158,8 @@ private fun Notification(notificationBannerData: NotificationData) {
.padding(start = Dimens.smallPadding),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onBackground,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
message?.let {
Text(
Expand Down

0 comments on commit a2e177e

Please sign in to comment.