From 808a4e32efe51c7b134f6faa67e1b8d6ddb2758e Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 11 Nov 2024 13:10:26 +0100 Subject: [PATCH] Fix overfloating heading for longer texts (#758) Wrap the heading in case of a longer text and elide it to the right side in case the number of lines exceeds two lines (won't probably happen). --- src/app/qml/Page.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/qml/Page.qml b/src/app/qml/Page.qml index c36da44e..7e464774 100644 --- a/src/app/qml/Page.qml +++ b/src/app/qml/Page.qml @@ -72,8 +72,13 @@ QQC2.Page { Heading { id: heading Layout.alignment: Qt.AlignHCenter | Qt.AlignTop + Layout.preferredWidth: mainLayout.width + horizontalAlignment: Text.AlignHCenter + elide: Text.ElideRight level: 5 + maximumLineCount: 2 visible: text + wrapMode:Text.WordWrap } ColumnLayout {