mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Limit link previews width in the timeline to 300 points.
This commit is contained in:
@@ -43,6 +43,8 @@ struct TextRoomTimelineView: View, TextBasedRoomTimelineViewProtocol {
|
||||
LinkPreviewView(url: url, metadata: metadata)
|
||||
}
|
||||
}
|
||||
// Link previews report the full proposed width, which would otherwise stretch the bubble across the timeline.
|
||||
.frame(maxWidth: TimelineMediaFrame.maxLinkPreviewWidth)
|
||||
.padding(.bottom, 16)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user