forces left alignment for history diff

This commit is contained in:
gridtime 2023-12-15 04:07:35 +01:00
parent 75fc44e34f
commit ef3ee1cdf6
No known key found for this signature in database
GPG Key ID: FB6ACC7A1C9182F8

View File

@ -48,19 +48,7 @@ HRowLayout {
readonly property alias contentLabel: contentLabel
readonly property int xOffset:
onRight ?
Math.min(
contentColumn.width - contentLabel.paintedWidth -
contentLabel.leftPadding - contentLabel.rightPadding,
contentColumn.width - linksRepeater.widestChild -
(
pureMedia ?
0 : contentLabel.leftPadding + contentLabel.rightPadding
),
) :
0
readonly property int xOffset: 0
readonly property int maxMessageWidth:
contentText.includes("<pre>") || contentText.includes("<table>") ?
@ -75,7 +63,7 @@ HRowLayout {
readonly property alias selectedText: contentLabel.selectedPlainText
spacing: theme.chat.message.horizontalSpacing
layoutDirection: onRight ? Qt.RightToLeft: Qt.LeftToRight
layoutDirection: Qt.LeftToRight
HColumnLayout {
id: contentColumn