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
parent
598d536d3c
commit
d9d110ed96
|
@ -27,6 +27,8 @@ Kirigami.Page {
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
text: bannerText
|
text: bannerText
|
||||||
color: bannerTextError ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
|
color: bannerTextError ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
|
||||||
|
Layout.maximumWidth: root.width - 2 * Kirigami.Units.largeSpacing
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
Kirigami.FormLayout {
|
Kirigami.FormLayout {
|
||||||
Kirigami.PasswordField {
|
Kirigami.PasswordField {
|
||||||
|
|
|
@ -27,6 +27,8 @@ Kirigami.Page {
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
text: bannerText
|
text: bannerText
|
||||||
color: bannerTextError ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
|
color: bannerTextError ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.textColor
|
||||||
|
Layout.maximumWidth: root.width - 2 * Kirigami.Units.largeSpacing
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
Kirigami.FormLayout {
|
Kirigami.FormLayout {
|
||||||
Kirigami.PasswordField {
|
Kirigami.PasswordField {
|
||||||
|
|
Loading…
Reference in New Issue