Merge pull request #4075 from element-hq/feature/bma/galleryFix
Fix rendering issue in the toolbar.
This commit is contained in:
commit
e44672a403
3 changed files with 8 additions and 4 deletions
|
|
@ -41,8 +41,8 @@ open class MediaViewerStateProvider : PreviewParameterProvider<MediaViewerState>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
aVideoMediaInfo(
|
aVideoMediaInfo(
|
||||||
senderName = "Sally Sanderson",
|
senderName = "A very long name so that it will be truncated and will not be displayed on multiple lines",
|
||||||
dateSent = "21 NOV, 2024",
|
dateSent = "A very very long date that will be truncated and will not be displayed on multiple lines",
|
||||||
caption = "A caption",
|
caption = "A caption",
|
||||||
).let {
|
).let {
|
||||||
aMediaViewerState(
|
aMediaViewerState(
|
||||||
|
|
|
||||||
|
|
@ -336,11 +336,15 @@ private fun MediaViewerTopBar(
|
||||||
text = senderName,
|
text = senderName,
|
||||||
style = ElementTheme.typography.fontBodyMdMedium,
|
style = ElementTheme.typography.fontBodyMdMedium,
|
||||||
color = ElementTheme.colors.textPrimary,
|
color = ElementTheme.colors.textPrimary,
|
||||||
|
maxLines = 1,
|
||||||
|
overflow = TextOverflow.Ellipsis,
|
||||||
)
|
)
|
||||||
Text(
|
Text(
|
||||||
text = dateSent,
|
text = dateSent,
|
||||||
style = ElementTheme.typography.fontBodySmRegular,
|
style = ElementTheme.typography.fontBodySmRegular,
|
||||||
color = ElementTheme.colors.textPrimary,
|
color = ElementTheme.colors.textPrimary,
|
||||||
|
maxLines = 1,
|
||||||
|
overflow = TextOverflow.Ellipsis
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:77913c010877d13d82196182d32e19168e77102d2f245ab321c2224a7108768a
|
oid sha256:d10cb9be5b5139f0fdfdfb11cc3d3eca1955297180e5db8142bfea6250f20d73
|
||||||
size 21874
|
size 25811
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue