From 0dfeec6cae4300d132345b5ac496b7d974edce02 Mon Sep 17 00:00:00 2001 From: James Graham Date: Sat, 11 May 2024 15:15:01 +0100 Subject: [PATCH] Make sure that the link preview sizes correctly so that there is no bubble overflow --- src/timeline/LinkPreviewComponent.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/timeline/LinkPreviewComponent.qml b/src/timeline/LinkPreviewComponent.qml index 175c1516a..2025909a6 100644 --- a/src/timeline/LinkPreviewComponent.qml +++ b/src/timeline/LinkPreviewComponent.qml @@ -53,6 +53,7 @@ QQC2.Control { Layout.fillWidth: true Layout.maximumWidth: root.maxContentWidth + Layout.minimumHeight: root.defaultHeight leftPadding: 0 rightPadding: 0 @@ -112,7 +113,7 @@ QQC2.Control { id: linkPreviewDescription Layout.fillWidth: true Layout.maximumHeight: maximizeButton.checked ? -1 : root.defaultHeight - linkPreviewTitle.height - column.spacing - visible: linkPreviewTitle.height + column.spacing <= root.defaultHeight || maximizeButton.checked + visible: linkPreviewTitle.height + column.spacing + font.pointSize <= root.defaultHeight || maximizeButton.checked text: linkPreviewer.description wrapMode: Text.Wrap elide: Text.ElideRight