Fix(ActivityCenter): Hotfix for activity center ui issues

This commit is contained in:
MishkaRogachev 2022-11-21 20:17:39 +04:00 committed by Jakub
parent 7fa05c655a
commit fee883b650
3 changed files with 5 additions and 8 deletions

View File

@ -41,11 +41,9 @@ Item {
spacing: Style.current.padding
StatusRollArea {
Layout.preferredHeight: innerRow.implicitHeight
Layout.fillWidth: true
content: RowLayout {
id: innerRow
spacing: 0
Repeater {
@ -63,13 +61,12 @@ Item {
StatusFlatButton {
enabled: modelData.enabled
visible: modelData.visible
width: visible ? implicitWidth : 0
text: modelData.text
anchors.verticalCenter: parent.verticalCenter
size: StatusBaseButton.Size.Small
highlighted: modelData.category == root.currentActivityCategory
highlighted: modelData.category === root.currentActivityCategory
onClicked: root.categoryTriggered(modelData.category)
onEnabledChanged: if (!enabled && highlighted) root.categoryTriggered(ActivityCenterPopup.ActivityCategory.All)
Layout.preferredWidth: visible ? implicitWidth : 0
}
}
}

View File

@ -32,8 +32,7 @@ Item {
anchors.right: parent.right
anchors.left: parent.left
messageTimestamp: notification.timestamp
previousMessageTimestamp: root.previousNotificationIndex == 0 ? "" :
root.activityCenterStore.activityCenterList.getNotificationData(
previousMessageTimestamp: root.activityCenterStore.activityCenterList.getNotificationData(
previousNotificationIndex, "timestamp")
visible: text !== ""
}

View File

@ -52,6 +52,7 @@ ActivityNotificationBase {
Layout.preferredWidth: root.messageDetails.sender.profileImage.assetSettings.width
Layout.preferredHeight: profileImage.height
Layout.alignment: Qt.AlignTop
Layout.leftMargin: Style.current.padding
Layout.topMargin: 2
StatusSmartIdenticon {