From 428524bdb8a8d795778c23b678e5a3b93cb8aef6 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 {