From d9d110ed96b0801289fcb372baf950c16c0d21b4 Mon Sep 17 00:00:00 2001 From: Johan Ouwerkerk Date: Tue, 26 May 2020 21:25:52 +0200 Subject: [PATCH] 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. --- src/contents/ui/SetupPassword.qml | 2 ++ src/contents/ui/UnlockAccounts.qml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/contents/ui/SetupPassword.qml b/src/contents/ui/SetupPassword.qml index c08cfb9..b21e3a9 100644 --- a/src/contents/ui/SetupPassword.qml +++ b/src/contents/ui/SetupPassword.qml @@ -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 { diff --git a/src/contents/ui/UnlockAccounts.qml b/src/contents/ui/UnlockAccounts.qml index 0469e54..938a537 100644 --- a/src/contents/ui/UnlockAccounts.qml +++ b/src/contents/ui/UnlockAccounts.qml @@ -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 {