diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-01-17 17:33:39 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-19 12:42:47 -0800 |
commit | da43bd096f64c1b9a8e6a8660c6a3e77af5e9383 (patch) | |
tree | 45d3b2cad9bda78ac4842179ce9ee53c454d7a65 /mobile-widgets | |
parent | 126329ab7c1b4062a4ba72c7cbac4ee703d65e3c (diff) | |
download | subsurface-da43bd096f64c1b9a8e6a8660c6a3e77af5e9383.tar.gz |
mobile/kirigami: fix width of passive notification
If we have a button on the notification to trigger an action, we need to
make sure there's space for that button.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/3rdparty/0017-make-space-for-button-in-passive-notification.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mobile-widgets/3rdparty/0017-make-space-for-button-in-passive-notification.patch b/mobile-widgets/3rdparty/0017-make-space-for-button-in-passive-notification.patch new file mode 100644 index 000000000..c1f704afc --- /dev/null +++ b/mobile-widgets/3rdparty/0017-make-space-for-button-in-passive-notification.patch @@ -0,0 +1,28 @@ +From a0532ed879b5068ce64a9d5e5464d36507a9a92a Mon Sep 17 00:00:00 2001 +From: Dirk Hohndel <dirk@hohndel.org> +Date: Sun, 17 Jan 2021 17:31:22 -0800 +Subject: [PATCH 17/17] make space for button in passive notification + +Not sure how this is supposed to work otherwise. + +Signed-off-by: Dirk Hohndel <dirk@hohndel.org> +--- + src/controls/templates/private/PassiveNotification.qml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/controls/templates/private/PassiveNotification.qml b/src/controls/templates/private/PassiveNotification.qml +index ceb57aca..aaa438ae 100644 +--- a/src/controls/templates/private/PassiveNotification.qml ++++ b/src/controls/templates/private/PassiveNotification.qml +@@ -172,7 +172,7 @@ Controls.Popup { + Controls.Label { + id: label + color: subsurfaceTheme.primaryTextColor +- Layout.maximumWidth: Math.min(root.parent.width - Kirigami.Units.largeSpacing * 4, implicitWidth) ++ Layout.maximumWidth: Math.min(root.parent.width - actionButton.implicitWidth - Kirigami.Units.largeSpacing * 4, implicitWidth) + elide: Text.ElideRight + wrapMode: Text.WordWrap + maximumLineCount: 4 +-- +2.29.2 + |