fix(toast-notifications): Fix notifcations listview sizes
Closes: #6767
This commit is contained in:
parent
10d53454b3
commit
04ce8df483
|
@ -976,15 +976,16 @@ Item {
|
||||||
|
|
||||||
StatusListView {
|
StatusListView {
|
||||||
id: toastArea
|
id: toastArea
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.topMargin: 60
|
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: 8
|
anchors.rightMargin: 8
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: 60
|
anchors.bottomMargin: 60
|
||||||
|
width: 343
|
||||||
|
height: Math.min(parent.height - 120, toastArea.contentHeight)
|
||||||
spacing: 8
|
spacing: 8
|
||||||
verticalLayoutDirection: ListView.BottomToTop
|
verticalLayoutDirection: ListView.BottomToTop
|
||||||
model: appMain.rootStore.mainModuleInst.ephemeralNotificationModel
|
model: appMain.rootStore.mainModuleInst.ephemeralNotificationModel
|
||||||
|
|
||||||
delegate: StatusToastMessage {
|
delegate: StatusToastMessage {
|
||||||
primaryText: model.title
|
primaryText: model.title
|
||||||
secondaryText: model.subTitle
|
secondaryText: model.subTitle
|
||||||
|
@ -1000,6 +1001,7 @@ Item {
|
||||||
onLinkActivated: {
|
onLinkActivated: {
|
||||||
Qt.openUrlExternally(link);
|
Qt.openUrlExternally(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
onClose: {
|
onClose: {
|
||||||
appMain.rootStore.mainModuleInst.removeEphemeralNotification(model.id)
|
appMain.rootStore.mainModuleInst.removeEphemeralNotification(model.id)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue