Skip to content

Commit

Permalink
Fixing section headers' wrapping and eliding (#3480)
Browse files Browse the repository at this point in the history
* fixing wraping for sectionTitle

* last adjustment

* post review fix
  • Loading branch information
VitorVieiraZ authored Jun 5, 2024
1 parent d1fc59e commit 29db4a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/qml/form/MMFormPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Page {

property string sectionTitle: section

height: section ? 76 * __dp : 0
height: section ? childrenRect.height : 0
width: ListView.view.width

// section bgnd
Expand All @@ -233,15 +233,21 @@ Page {
color: __style.lightGreenColor;
}

Text {
MMComponents.MMText {
id: sectionTitle

text: section
font: __style.h3
color: __style.forestColor

width: parent.width
wrapMode: Text.Wrap
elide: Text.ElideRight

topPadding: internal.formSpacing
bottomPadding: internal.formSpacing

maximumLineCount: 3
}
}
}
Expand Down

0 comments on commit 29db4a0

Please sign in to comment.