From 04ce8df483a0e3358a0aed03b3565a2ed539e733 Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Mon, 22 Aug 2022 15:56:28 +0300 Subject: [PATCH] fix(toast-notifications): Fix notifcations listview sizes Closes: #6767 --- ui/app/mainui/AppMain.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/app/mainui/AppMain.qml b/ui/app/mainui/AppMain.qml index 0ad72e9327..14090b92c2 100644 --- a/ui/app/mainui/AppMain.qml +++ b/ui/app/mainui/AppMain.qml @@ -976,15 +976,16 @@ Item { StatusListView { id: toastArea - anchors.top: parent.top - anchors.topMargin: 60 anchors.right: parent.right anchors.rightMargin: 8 anchors.bottom: parent.bottom anchors.bottomMargin: 60 + width: 343 + height: Math.min(parent.height - 120, toastArea.contentHeight) spacing: 8 verticalLayoutDirection: ListView.BottomToTop model: appMain.rootStore.mainModuleInst.ephemeralNotificationModel + delegate: StatusToastMessage { primaryText: model.title secondaryText: model.subTitle @@ -1000,6 +1001,7 @@ Item { onLinkActivated: { Qt.openUrlExternally(link); } + onClose: { appMain.rootStore.mainModuleInst.removeEphemeralNotification(model.id) }