summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-11-29 03:10:35 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-11-29 03:10:35 +0100
commita703e6f0417f5a8f5da497c2f91f92c2f45d9f4f (patch)
tree6a257f2d81bf506c0bf5392ebc495faa766b1177 /resources/qml/delegates
parentFix source translation (diff)
downloadnheko-a703e6f0417f5a8f5da497c2f91f92c2f45d9f4f.tar.xz
Remove double padding on redactions
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/Redacted.qml9
1 files changed, 6 insertions, 3 deletions
diff --git a/resources/qml/delegates/Redacted.qml b/resources/qml/delegates/Redacted.qml
index 2346fcda..09c63525 100644
--- a/resources/qml/delegates/Redacted.qml
+++ b/resources/qml/delegates/Redacted.qml
@@ -10,7 +10,7 @@ import im.nheko 1.0
 Rectangle{
 
     required property real delegateWidth
-    height: redactedLayout.implicitHeight + 2 * Nheko.paddingSmall
+    height: redactedLayout.implicitHeight + Nheko.paddingSmall
     width: redactedLayout.implicitWidth + 2 * Nheko.paddingMedium
     radius: fontMetrics.lineSpacing / 2 + 2 * Nheko.paddingSmall
     color: Nheko.colors.alternateBase
@@ -18,6 +18,8 @@ Rectangle{
     RowLayout {
         id: redactedLayout
         anchors.centerIn: parent
+        spacing: Nheko.paddingSmall
+
         Image {
             id: trashImg
             Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
@@ -27,13 +29,14 @@ Rectangle{
         }
         Label {
             id: redactedLabel
-            Layout.margins: Nheko.paddingSmall
+            Layout.margins: 0
             Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
             Layout.fillWidth: true
             Layout.maximumWidth: delegateWidth - 4 * Nheko.paddingSmall - trashImg.width - 2 * Nheko.paddingMedium
             property var redactedPair: room.formatRedactedEvent(eventId)
             text: redactedPair["first"]
             wrapMode: Label.WordWrap
+            color: Nheko.colors.text
 
             ToolTip.text: redactedPair["second"]
             ToolTip.visible: hh.hovered
@@ -42,4 +45,4 @@ Rectangle{
             }
         }
     }
-}
\ No newline at end of file
+}