Fix width for messages with text + image previews
The width of the images weren't taken into consideration to calculate the message xOffset, resulting in these messages being pushed way past what they should be and looking very thin
This commit is contained in:
parent
be0541f2d9
commit
090c53898c
|
@ -31,8 +31,16 @@ HRowLayout {
|
||||||
|
|
||||||
readonly property int xOffset:
|
readonly property int xOffset:
|
||||||
onRight ?
|
onRight ?
|
||||||
contentLabel.width - contentLabel.paintedWidth -
|
Math.min(
|
||||||
contentLabel.leftPadding - contentLabel.rightPadding :
|
contentColumn.width - contentLabel.paintedWidth -
|
||||||
|
contentLabel.leftPadding - contentLabel.rightPadding,
|
||||||
|
|
||||||
|
contentColumn.width - linksRepeater.widestChild -
|
||||||
|
(
|
||||||
|
pureMedia ?
|
||||||
|
0 : contentLabel.leftPadding + contentLabel.rightPadding
|
||||||
|
),
|
||||||
|
) :
|
||||||
0
|
0
|
||||||
|
|
||||||
// 600px max with a 16px font
|
// 600px max with a 16px font
|
||||||
|
|
Loading…
Reference in New Issue
Block a user