diff --git a/qml/components/MessageListViewItem.qml b/qml/components/MessageListViewItem.qml
index aa0ed3f..a1c117b 100644
--- a/qml/components/MessageListViewItem.qml
+++ b/qml/components/MessageListViewItem.qml
@@ -227,7 +227,7 @@ ListItem {
leftMargin: messageListItem.isOwnMessage ? precalculatedValues.pageMarginDouble : 0
verticalCenter: parent.verticalCenter
}
- height: messageTextColumn.height + precalculatedValues.paddingMediumDouble
+ height: messageTextColumn.height + precalculatedValues.paddingMediumDouble
width: precalculatedValues.backgroundWidth
property bool isUnread: index > chatModel.getLastReadMessageIndex()
color: isUnread ? Theme.secondaryHighlightColor : Theme.secondaryColor
@@ -391,10 +391,6 @@ ListItem {
WebPagePreview {
id: webPagePreview
- Component.onCompleted: {
- webPagePreviewLoader.height = 0;
- }
-
onImplicitHeightChanged: {
webPagePreviewLoader.height = webPagePreview.implicitHeight;
}
diff --git a/qml/components/WebPagePreview.qml b/qml/components/WebPagePreview.qml
index bb384a7..a31c1c0 100644
--- a/qml/components/WebPagePreview.qml
+++ b/qml/components/WebPagePreview.qml
@@ -145,4 +145,19 @@ Column {
}
}
+ Text {
+ id: noPreviewAvailableText
+
+ width: parent.width
+ text: qsTr("Preview not supported for this link...")
+ font.pixelSize: Theme.fontSizeTiny
+ font.italic: true
+ color: Theme.secondaryColor
+ elide: Text.ElideRight
+ wrapMode: Text.Wrap
+ maximumLineCount: 1
+ textFormat: Text.StyledText
+ visible: !siteNameText.visible && !titleText.visible && !descriptionText.visible && !webPagePreviewImageItem.visible
+ }
+
}
diff --git a/translations/harbour-fernschreiber-de.ts b/translations/harbour-fernschreiber-de.ts
index 8335fa8..19b9bff 100644
--- a/translations/harbour-fernschreiber-de.ts
+++ b/translations/harbour-fernschreiber-de.ts
@@ -1158,6 +1158,13 @@
Download fehlgeschlagen.
+
+ WebPagePreview
+
+
+ Vorschau wird für diesen Link nicht unterstützt...
+
+
functions
diff --git a/translations/harbour-fernschreiber-en.ts b/translations/harbour-fernschreiber-en.ts
index 80ac99f..6db6a80 100644
--- a/translations/harbour-fernschreiber-en.ts
+++ b/translations/harbour-fernschreiber-en.ts
@@ -1158,6 +1158,13 @@
Download failed.
+
+ WebPagePreview
+
+
+ Preview not supported for this link...
+
+
functions
diff --git a/translations/harbour-fernschreiber-es.ts b/translations/harbour-fernschreiber-es.ts
index 4829037..3139783 100644
--- a/translations/harbour-fernschreiber-es.ts
+++ b/translations/harbour-fernschreiber-es.ts
@@ -1148,6 +1148,13 @@
Error al bajar
+
+ WebPagePreview
+
+
+
+
+
functions
diff --git a/translations/harbour-fernschreiber-fi.ts b/translations/harbour-fernschreiber-fi.ts
index 25910c6..88eec74 100644
--- a/translations/harbour-fernschreiber-fi.ts
+++ b/translations/harbour-fernschreiber-fi.ts
@@ -1159,6 +1159,13 @@
Lataus epäonnistui.
+
+ WebPagePreview
+
+
+
+
+
functions
diff --git a/translations/harbour-fernschreiber-hu.ts b/translations/harbour-fernschreiber-hu.ts
index 5ae30cc..cad2d5f 100644
--- a/translations/harbour-fernschreiber-hu.ts
+++ b/translations/harbour-fernschreiber-hu.ts
@@ -1148,6 +1148,13 @@
A letöltés nem sikerült.
+
+ WebPagePreview
+
+
+
+
+
functions
diff --git a/translations/harbour-fernschreiber-it.ts b/translations/harbour-fernschreiber-it.ts
index 33e5ef3..8ecedeb 100644
--- a/translations/harbour-fernschreiber-it.ts
+++ b/translations/harbour-fernschreiber-it.ts
@@ -1158,6 +1158,13 @@
Download non riuscito.
+
+ WebPagePreview
+
+
+
+
+
functions
diff --git a/translations/harbour-fernschreiber-pl.ts b/translations/harbour-fernschreiber-pl.ts
index bc554af..9a81239 100644
--- a/translations/harbour-fernschreiber-pl.ts
+++ b/translations/harbour-fernschreiber-pl.ts
@@ -1168,6 +1168,13 @@
Nieudane pobieranie
+
+ WebPagePreview
+
+
+
+
+
functions
diff --git a/translations/harbour-fernschreiber-ru.ts b/translations/harbour-fernschreiber-ru.ts
index 0b7d7ea..34fa4c2 100644
--- a/translations/harbour-fernschreiber-ru.ts
+++ b/translations/harbour-fernschreiber-ru.ts
@@ -1168,6 +1168,13 @@
Ошибка скачивания.
+
+ WebPagePreview
+
+
+
+
+
functions
diff --git a/translations/harbour-fernschreiber-sv.ts b/translations/harbour-fernschreiber-sv.ts
index fa0dfe8..a7df889 100644
--- a/translations/harbour-fernschreiber-sv.ts
+++ b/translations/harbour-fernschreiber-sv.ts
@@ -1158,6 +1158,13 @@
Nerladdning misslyckades.
+
+ WebPagePreview
+
+
+
+
+
functions
diff --git a/translations/harbour-fernschreiber-zh_CN.ts b/translations/harbour-fernschreiber-zh_CN.ts
index 01db2e9..4f83a9b 100644
--- a/translations/harbour-fernschreiber-zh_CN.ts
+++ b/translations/harbour-fernschreiber-zh_CN.ts
@@ -1148,6 +1148,13 @@
下载失败
+
+ WebPagePreview
+
+
+
+
+
functions
diff --git a/translations/harbour-fernschreiber.ts b/translations/harbour-fernschreiber.ts
index 14ff145..06f8cc7 100644
--- a/translations/harbour-fernschreiber.ts
+++ b/translations/harbour-fernschreiber.ts
@@ -1148,6 +1148,13 @@
+
+ WebPagePreview
+
+
+
+
+
functions