Sort of fix labels running off the ends of pages and being clipped.

Simply impose a max width and enable word wrapping to get labels to trade width for height.
master
Johan Ouwerkerk 2020-05-26 21:25:52 +02:00
parent 598d536d3c
commit d9d110ed96
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,8 @@ Kirigami.Page {
Controls.Label {
text: bannerText
color: bannerTextError ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
Layout.maximumWidth: root.width - 2 * Kirigami.Units.largeSpacing
wrapMode: Text.WordWrap
}
Kirigami.FormLayout {
Kirigami.PasswordField {

View File

@ -27,6 +27,8 @@ Kirigami.Page {
Controls.Label {
text: bannerText
color: bannerTextError ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
Layout.maximumWidth: root.width - 2 * Kirigami.Units.largeSpacing
wrapMode: Text.WordWrap
}
Kirigami.FormLayout {
Kirigami.PasswordField {