summary refs log tree commit diff
path: root/resources/qml/MatrixText.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-08-25 20:43:04 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-08-25 20:43:04 +0200
commitb187440e68334b828d7271ac3d51dfd4fd24b18d (patch)
treeaa9199968eb18245357128c1e51aac598d058257 /resources/qml/MatrixText.qml
parentShow reactions again (diff)
downloadnheko-b187440e68334b828d7271ac3d51dfd4fd24b18d.tar.xz
Reimplement reply delegate by moving out the timeline event without layout
Diffstat (limited to 'resources/qml/MatrixText.qml')
-rw-r--r--resources/qml/MatrixText.qml23
1 files changed, 11 insertions, 12 deletions
diff --git a/resources/qml/MatrixText.qml b/resources/qml/MatrixText.qml
index de15e078..bf953d56 100644
--- a/resources/qml/MatrixText.qml
+++ b/resources/qml/MatrixText.qml
@@ -11,25 +11,24 @@ TextArea {
 
     property alias cursorShape: cs.cursorShape
 
-    leftInset: 0
-    bottomInset: 0
-    rightInset: 0
-    topInset: 0
-    leftPadding: 0
-    bottomPadding: 0
-    rightPadding: 0
-    topPadding: 0
-    background: null
-
     ToolTip.text: hoveredLink
     ToolTip.visible: hoveredLink || false
+    background: null
+    bottomInset: 0
+    bottomPadding: 0
     // this always has to be enabled, otherwise you can't click links anymore!
     //enabled: selectByMouse
     color: palette.text
     focus: false
+    leftInset: 0
+    leftPadding: 0
     readOnly: true
+    rightInset: 0
+    rightPadding: 0
     selectByMouse: !Settings.mobileMode
     textFormat: TextEdit.RichText
+    topInset: 0
+    topPadding: 0
     wrapMode: Text.Wrap
 
     // Setting a tooltip delay makes the hover text empty .-.
@@ -40,8 +39,8 @@ TextArea {
     onLinkActivated: Nheko.openLink(link)
 
     // propagate events up
-    onPressAndHold: (event) => event.accepted = false
-    onPressed: (event) => event.accepted = (event.button == Qt.LeftButton)
+    onPressAndHold: event => event.accepted = false
+    onPressed: event => event.accepted = (event.button == Qt.LeftButton)
 
     NhekoCursorShape {
         id: cs