diff --git a/ElementX/Sources/Screens/Timeline/View/TimelineItemViews/FileRoomTimelineView.swift b/ElementX/Sources/Screens/Timeline/View/TimelineItemViews/FileRoomTimelineView.swift index e2a0ad9ea..43d3cf171 100644 --- a/ElementX/Sources/Screens/Timeline/View/TimelineItemViews/FileRoomTimelineView.swift +++ b/ElementX/Sources/Screens/Timeline/View/TimelineItemViews/FileRoomTimelineView.swift @@ -87,7 +87,7 @@ struct MediaFileRoomTimelineContent: View { } .font(.compound.bodyLG) .foregroundStyle(.compound.textPrimary) - .lineLimit(1) + .lineLimit(2) } icon: { CompoundIcon(icon, size: .xSmall, relativeTo: .body) .foregroundColor(.compound.iconPrimary) @@ -111,6 +111,9 @@ struct FileRoomTimelineView_Previews: PreviewProvider, TestablePreview { FileRoomTimelineView(timelineItem: makeItem(filename: "document.pdf", fileSize: 3 * 1024 * 1024)) + FileRoomTimelineView(timelineItem: makeItem(filename: "very very very very long named document.pdf", + fileSize: 3 * 1024 * 1024)) + FileRoomTimelineView(timelineItem: makeItem(filename: "spreadsheet.xlsx", fileSize: 17 * 1024, caption: "The important figures you asked me to send over.")) diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPad-en-GB-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPad-en-GB-0.png index 161c50a23..9fd72b32d 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPad-en-GB-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPad-en-GB-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b8a2e89475abd3331c24e4dd2f41c3412d8e2d072fb9fcad6b05c3fd6e2cc819 -size 139102 +oid sha256:16242e56af8aeab6534f518326512fdbede62c396992d7c1e6adeb3d00ce5a00 +size 157010 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPad-pseudo-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPad-pseudo-0.png index 47d2481a2..cba3ee98b 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPad-pseudo-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPad-pseudo-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c624fe747a8d28aa799c6a47ab307f97106ecfedcb03129889f2fc35dec7c590 -size 142396 +oid sha256:d4540eb5ba60279d0226697d1cb8c0e82008a5efbc6a197a356ce41caa483518 +size 161047 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPhone-16-en-GB-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPhone-16-en-GB-0.png index a554bcd49..e2eba3d7f 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPhone-16-en-GB-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPhone-16-en-GB-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:81179e9a2b30239a3655fae58bc88cafaa49187f724e9760b149d6d6d33ae259 -size 91418 +oid sha256:a5df19851fe6c02a07c7d15ebc5048b09e3d5903cdcc67cc4c5a88436df34819 +size 108539 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPhone-16-pseudo-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPhone-16-pseudo-0.png index 188f911fb..7aa848268 100644 --- a/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPhone-16-pseudo-0.png +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/fileRoomTimelineView.iPhone-16-pseudo-0.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8822f785222c6ae1f8078cb57c8733ae2a3ff9152e85a710e94a742450e12e3f -size 94061 +oid sha256:aebfb13abfb596696fcb7c3970e5a4abd10042a9dd692e1100d1170aa4210075 +size 111685