mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Render image and video in galleries as a grid (#5929)
This commit is contained in:
@@ -180,6 +180,10 @@ private extension TimelineItemSendInfo {
|
||||
switch message {
|
||||
case is ImageRoomTimelineItem, is VideoRoomTimelineItem:
|
||||
.overlay(capsuleStyle: !message.hasMediaCaption)
|
||||
case is GalleryRoomTimelineItem:
|
||||
// Without a caption, append the send info below the grid rather than overlaying
|
||||
// a capsule on top of the media.
|
||||
message.hasMediaCaption ? .overlay(capsuleStyle: false) : .vertical()
|
||||
case is AudioRoomTimelineItem, is FileRoomTimelineItem:
|
||||
// swiftlint:disable:next void_function_in_ternary
|
||||
message.hasMediaCaption ? .overlay(capsuleStyle: false) : .horizontal(spacing: 0) // No spacing as the content already contains it.
|
||||
|
||||
Reference in New Issue
Block a user