summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/EncryptionIndicator.qml2
-rw-r--r--resources/qml/TimelineMetadata.qml5
2 files changed, 4 insertions, 3 deletions
diff --git a/resources/qml/EncryptionIndicator.qml b/resources/qml/EncryptionIndicator.qml
index fb9dc7b5..347220d7 100644
--- a/resources/qml/EncryptionIndicator.qml
+++ b/resources/qml/EncryptionIndicator.qml
@@ -59,8 +59,6 @@ Image {
             return sourceUrl + (stateImg.hovered ? unencryptedHoverColor : unencryptedColor);
         }
     }
-    sourceSize.height: height
-    sourceSize.width: width
     width: 16
 
     HoverHandler {
diff --git a/resources/qml/TimelineMetadata.qml b/resources/qml/TimelineMetadata.qml
index 53282fc5..d57c56d9 100644
--- a/resources/qml/TimelineMetadata.qml
+++ b/resources/qml/TimelineMetadata.qml
@@ -49,7 +49,8 @@ RowLayout {
         sourceSize.width: parent.iconSize * Screen.devicePixelRatio
         visible: metadata.isEdited || metadata.eventId == metadata.room.edit
         width: parent.iconSize
-
+        Layout.preferredWidth: parent.iconSize
+        Layout.preferredHeight: parent.iconSize
         HoverHandler {
             id: editHovered
 
@@ -77,6 +78,8 @@ RowLayout {
         trust: metadata.trustlevel
         visible: metadata.room.isEncrypted
         width: parent.iconSize
+        Layout.preferredWidth: parent.iconSize
+        Layout.preferredHeight: parent.iconSize
     }
     Label {
         id: ts