Fix rendering issue in the toolbar.
This commit is contained in:
parent
454c3edd05
commit
f95caea809
2 changed files with 6 additions and 2 deletions
|
|
@ -41,8 +41,8 @@ open class MediaViewerStateProvider : PreviewParameterProvider<MediaViewerState>
|
|||
)
|
||||
},
|
||||
aVideoMediaInfo(
|
||||
senderName = "Sally Sanderson",
|
||||
dateSent = "21 NOV, 2024",
|
||||
senderName = "A very long name so that it will be truncated and will not be displayed on multiple lines",
|
||||
dateSent = "A very very long date that will be truncated and will not be displayed on multiple lines",
|
||||
caption = "A caption",
|
||||
).let {
|
||||
aMediaViewerState(
|
||||
|
|
|
|||
|
|
@ -336,11 +336,15 @@ private fun MediaViewerTopBar(
|
|||
text = senderName,
|
||||
style = ElementTheme.typography.fontBodyMdMedium,
|
||||
color = ElementTheme.colors.textPrimary,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
)
|
||||
Text(
|
||||
text = dateSent,
|
||||
style = ElementTheme.typography.fontBodySmRegular,
|
||||
color = ElementTheme.colors.textPrimary,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue