diff --git a/src/messagecontent/LinkPreviewComponent.qml b/src/messagecontent/LinkPreviewComponent.qml index 8d6c8219f..4d59a2f8a 100644 --- a/src/messagecontent/LinkPreviewComponent.qml +++ b/src/messagecontent/LinkPreviewComponent.qml @@ -87,7 +87,6 @@ QQC2.Control { } ColumnLayout { id: column - Layout.preferredWidth: Math.max(linkPreviewTitle.implicitWidth, linkPreviewDescription.implicitWidth) Layout.fillWidth: true spacing: Kirigami.Units.smallSpacing Kirigami.Heading { @@ -108,7 +107,7 @@ QQC2.Control { text: root.linkPreviewer.title font: linkPreviewTitle.font elide: Text.ElideRight - elideWidth: linkPreviewTitle.width + elideWidth: column.width } } QQC2.Label { diff --git a/src/messagecontent/TextComponent.qml b/src/messagecontent/TextComponent.qml index 7c81adef1..3b88c58ad 100644 --- a/src/messagecontent/TextComponent.qml +++ b/src/messagecontent/TextComponent.qml @@ -72,7 +72,7 @@ QQC2.TextArea { */ property bool isReply: false - Layout.fillWidth: true + Layout.fillWidth: NeoChatConfig.compactLayout Layout.maximumWidth: Message.maxContentWidth Keys.onPressed: (event) => {