mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
increase line limit for name in FileRoomTimelineView
This commit is contained in:
@@ -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."))
|
||||
|
||||
Reference in New Issue
Block a user