From 647cc25e57a4d333c7ce08e4a17312e9b5b02b60 Mon Sep 17 00:00:00 2001 From: James Graham Date: Tue, 27 Dec 2022 13:19:04 +0000 Subject: [PATCH] Improve fileDelegate Make the buttons in file delegate always align left even in compact layout as this looks better. Also fix margins. BUG: 463327 --- src/qml/Component/Timeline/FileDelegate.qml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/qml/Component/Timeline/FileDelegate.qml b/src/qml/Component/Timeline/FileDelegate.qml index 721804110..109f95f28 100644 --- a/src/qml/Component/Timeline/FileDelegate.qml +++ b/src/qml/Component/Timeline/FileDelegate.qml @@ -33,10 +33,7 @@ TimelineContainer { } innerObject: RowLayout { - - Layout.fillWidth: true - Layout.maximumWidth: fileDelegate.contentMaxWidth - Layout.margins: Kirigami.Units.largeSpacing + Layout.maximumWidth: Math.min(fileDelegate.contentMaxWidth, implicitWidth) spacing: Kirigami.Units.largeSpacing @@ -111,24 +108,16 @@ TimelineContainer { } ColumnLayout { - Layout.alignment: Qt.AlignVCenter - Layout.fillWidth: true - spacing: 0 - QQC2.Label { text: model.display wrapMode: Text.Wrap - - Layout.fillWidth: true } QQC2.Label { id: sizeLabel text: Controller.formatByteSize(content.info ? content.info.size : 0) opacity: 0.7 - - Layout.fillWidth: true } }