diff --git a/src/gui/Pages/Chat/Timeline/EventContent.qml b/src/gui/Pages/Chat/Timeline/EventContent.qml index 14bf3425..e25eb541 100644 --- a/src/gui/Pages/Chat/Timeline/EventContent.qml +++ b/src/gui/Pages/Chat/Timeline/EventContent.qml @@ -31,8 +31,16 @@ HRowLayout { readonly property int xOffset: onRight ? - contentLabel.width - contentLabel.paintedWidth - - contentLabel.leftPadding - contentLabel.rightPadding : + Math.min( + contentColumn.width - contentLabel.paintedWidth - + contentLabel.leftPadding - contentLabel.rightPadding, + + contentColumn.width - linksRepeater.widestChild - + ( + pureMedia ? + 0 : contentLabel.leftPadding + contentLabel.rightPadding + ), + ) : 0 // 600px max with a 16px font