mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 05:55:59 +03:00
align activity text with "Sync now" text
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
cfe063de9e
commit
0ba16229c5
4 changed files with 12 additions and 11 deletions
|
@ -37,6 +37,7 @@ ItemDelegate {
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumHeight: Style.minActivityHeight
|
Layout.minimumHeight: Style.minActivityHeight
|
||||||
|
Layout.preferredWidth: parent.width
|
||||||
|
|
||||||
showDismissButton: model.isDismissable
|
showDismissButton: model.isDismissable
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import QtGraphicalEffects 1.15
|
||||||
import Style 1.0
|
import Style 1.0
|
||||||
import com.nextcloud.desktopclient 1.0
|
import com.nextcloud.desktopclient 1.0
|
||||||
|
|
||||||
Item {
|
RowLayout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property variant activityData: {{}}
|
property variant activityData: {{}}
|
||||||
|
@ -23,6 +23,8 @@ Item {
|
||||||
|
|
||||||
signal dismissButtonClicked()
|
signal dismissButtonClicked()
|
||||||
|
|
||||||
|
spacing: Style.standardSpacing
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: thumbnailItem
|
id: thumbnailItem
|
||||||
|
|
||||||
|
@ -30,12 +32,10 @@ Item {
|
||||||
readonly property int imageHeight: height * (1 - Style.thumbnailImageSizeReduction)
|
readonly property int imageHeight: height * (1 - Style.thumbnailImageSizeReduction)
|
||||||
readonly property int thumbnailRadius: model.thumbnail && model.thumbnail.isUserAvatar ? width / 2 : 3
|
readonly property int thumbnailRadius: model.thumbnail && model.thumbnail.isUserAvatar ? width / 2 : 3
|
||||||
|
|
||||||
anchors.left: parent.left
|
Layout.fillHeight: true
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
|
|
||||||
implicitHeight: model.thumbnail && model.thumbnail.isMimeTypeIcon ? root.iconSize * 0.9 : root.iconSize
|
|
||||||
implicitWidth: root.iconSize
|
implicitWidth: root.iconSize
|
||||||
|
implicitHeight: model.thumbnail && model.thumbnail.isMimeTypeIcon ? root.iconSize * 0.9 : root.iconSize
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: thumbnailImageLoader
|
id: thumbnailImageLoader
|
||||||
|
@ -118,10 +118,10 @@ Item {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: activityContentLayout
|
id: activityContentLayout
|
||||||
|
|
||||||
anchors.left: thumbnailItem.right
|
Layout.fillHeight: true
|
||||||
anchors.right: parent.right
|
Layout.fillWidth: true
|
||||||
anchors.top: parent.top
|
Layout.maximumWidth: root.width - Style.standardSpacing - root.iconSize
|
||||||
anchors.bottom: parent.bottom
|
implicitWidth: root.width - Style.standardSpacing - root.iconSize
|
||||||
|
|
||||||
spacing: Style.smallSpacing
|
spacing: Style.smallSpacing
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ ScrollView {
|
||||||
signal activityItemClicked(int index)
|
signal activityItemClicked(int index)
|
||||||
|
|
||||||
contentWidth: availableWidth
|
contentWidth: availableWidth
|
||||||
padding: 1
|
padding: 0
|
||||||
focus: false
|
focus: false
|
||||||
|
|
||||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
|
|
|
@ -50,7 +50,7 @@ QtObject {
|
||||||
// this amount to properly center the sync status icon to the thumbnail
|
// this amount to properly center the sync status icon to the thumbnail
|
||||||
// images, which will work so long as the thumbnails are left aligned
|
// images, which will work so long as the thumbnails are left aligned
|
||||||
|
|
||||||
property int standardSpacing: 10
|
property int standardSpacing: trayHorizontalMargin
|
||||||
property int smallSpacing: 5
|
property int smallSpacing: 5
|
||||||
property int extraSmallSpacing: 2
|
property int extraSmallSpacing: 2
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue