[kcmkwin/kwinrules] Set saner width for Placeholder messages so they don't overflow

See D29692
This commit is contained in:
Nate Graham 2020-05-12 14:12:04 -06:00
parent 65f611f700
commit 9e5498238f
2 changed files with 4 additions and 7 deletions

View file

@ -48,12 +48,8 @@ ScrollViewKCM {
Kirigami.PlaceholderMessage {
id: hintArea
visible: rulesView.count <= 4
anchors {
top: parent.contentItem.bottom
left: parent.left
right: parent.right
bottom: parent.bottom
}
anchors.centerIn: parent
width: parent.width - (units.largeSpacing * 4)
helpfulAction: QQC2.Action {
text: i18n("Add Properties...")
icon.name: "list-add-symbolic"

View file

@ -68,7 +68,8 @@ ScrollViewKCM {
Kirigami.PlaceholderMessage {
visible: ruleBookView.count == 0
anchors.fill: parent
anchors.centerIn: parent
width: parent.width - (units.largeSpacing * 4)
text: i18n("No rules for specific windows are currently set");
}
}