summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-18 22:30:42 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-18 22:30:42 +0200
commitb3a7f0b88807a1d3e2a4d7acf121db0aedfc157f (patch)
tree119deae527c67f698bbb40ef0ab9b8cdec08c7eb /resources/qml/delegates
parentActually forward keys using m.forwared_room_key (diff)
downloadnheko-b3a7f0b88807a1d3e2a4d7acf121db0aedfc157f.tar.xz
Hide room name, if not loaded yet
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r--resources/qml/delegates/ImageMessage.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/resources/qml/delegates/ImageMessage.qml b/resources/qml/delegates/ImageMessage.qml
index 6ac5ee15..5c3dac95 100644
--- a/resources/qml/delegates/ImageMessage.qml
+++ b/resources/qml/delegates/ImageMessage.qml
@@ -32,6 +32,7 @@ Item {
 
         MouseArea {
             id: mouseArea
+
             enabled: model.data.type == MtxEvent.ImageMessage && img.status == Image.Ready
             hoverEnabled: true
             anchors.fill: parent
@@ -40,23 +41,23 @@ Item {
 
         Item {
             id: overlay
-        
+
             anchors.fill: parent
             visible: mouseArea.containsMouse
 
             Rectangle {
                 id: container
-                
+
                 width: parent.width
                 implicitHeight: imgcaption.implicitHeight
-                anchors.bottom: overlay.bottom 
+                anchors.bottom: overlay.bottom
                 color: colors.window
                 opacity: 0.75
             }
 
             Text {
                 id: imgcaption
-                
+
                 anchors.fill: container
                 elide: Text.ElideMiddle
                 horizontalAlignment: Text.AlignHCenter
@@ -65,6 +66,9 @@ Item {
                 text: model.data.filename ? model.data.filename : model.data.body
                 color: colors.text
             }
+
         }
+
     }
+
 }