increase line limit for name in FileRoomTimelineView

This commit is contained in:
Mauro Romito
2025-09-04 18:35:48 +02:00
committed by Mauro
parent 2634091638
commit 5be7967f94
5 changed files with 12 additions and 9 deletions
@@ -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."))