Limit link previews width in the timeline to 300 points.

This commit is contained in:
Stefan Ceriu
2026-08-26 12:15:46 +03:00
parent 600b9224b3
commit efefd549a2
2 changed files with 18 additions and 9 deletions
@@ -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)
}
}