summary refs log tree commit diff
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2022-02-03 18:31:29 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2022-02-03 18:31:29 -0500
commit9d3d85c5c2b2e9e4ad7549d3deffa3278c9dfa7a (patch)
treee74e1ceeb8ebe73870c4508a679efbef48260dec
parentAdd offline indicator (#472) (diff)
downloadnheko-9d3d85c5c2b2e9e4ad7549d3deffa3278c9dfa7a.tar.xz
Use different height setting
-rw-r--r--resources/qml/ChatPage.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/qml/ChatPage.qml b/resources/qml/ChatPage.qml
index bd60bdab..7cc6552a 100644
--- a/resources/qml/ChatPage.qml
+++ b/resources/qml/ChatPage.qml
@@ -26,10 +26,12 @@ Rectangle {
 
             color: Nheko.theme.error
             visible: !TimelineManager.isConnected
-            Layout.preferredHeight: fontMetrics.height + Nheko.paddingMedium
+            Layout.preferredHeight: offlineLabel.height + Nheko.paddingMedium
             Layout.fillWidth: true
 
             Label {
+                id: offlineLabel
+
                 anchors.centerIn: parent
                 text: qsTr("No network connection")
             }