import Style 1.0
import com.nextcloud.desktopclient 1.0
-Item {
+RowLayout {
id: root
property variant activityData: {{}}
signal dismissButtonClicked()
+ spacing: Style.standardSpacing
+
Item {
id: thumbnailItem
readonly property int imageHeight: height * (1 - Style.thumbnailImageSizeReduction)
readonly property int thumbnailRadius: model.thumbnail && model.thumbnail.isUserAvatar ? width / 2 : 3
- anchors.left: parent.left
- anchors.top: parent.top
- anchors.bottom: parent.bottom
+ Layout.fillHeight: true
- implicitHeight: model.thumbnail && model.thumbnail.isMimeTypeIcon ? root.iconSize * 0.9 : root.iconSize
implicitWidth: root.iconSize
+ implicitHeight: model.thumbnail && model.thumbnail.isMimeTypeIcon ? root.iconSize * 0.9 : root.iconSize
Loader {
id: thumbnailImageLoader
ColumnLayout {
id: activityContentLayout
- anchors.left: thumbnailItem.right
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ Layout.maximumWidth: root.width - Style.standardSpacing - root.iconSize
+ implicitWidth: root.width - Style.standardSpacing - root.iconSize
spacing: Style.smallSpacing
// this amount to properly center the sync status icon to the thumbnail\r
// images, which will work so long as the thumbnails are left aligned\r
\r
- property int standardSpacing: 10\r
+ property int standardSpacing: trayHorizontalMargin\r
property int smallSpacing: 5\r
property int extraSmallSpacing: 2\r
\r