Skip to content

Commit

Permalink
Fix overfloating heading for longer texts (#758)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
grulja authored Nov 11, 2024
1 parent 5b4ecc9 commit 428524b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qml/Page.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 428524b

Please sign in to comment.