From ef3ee1cdf6bef236fec07e6e67256c3638a23701 Mon Sep 17 00:00:00 2001 From: gridtime Date: Fri, 15 Dec 2023 04:07:35 +0100 Subject: [PATCH] forces left alignment for history diff --- src/gui/Pages/Chat/Timeline/HistoryContent.qml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/gui/Pages/Chat/Timeline/HistoryContent.qml b/src/gui/Pages/Chat/Timeline/HistoryContent.qml index 7016932a..308f99cf 100644 --- a/src/gui/Pages/Chat/Timeline/HistoryContent.qml +++ b/src/gui/Pages/Chat/Timeline/HistoryContent.qml @@ -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("
") || contentText.includes("") ?
@@ -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