Improve fileDelegate
Make the buttons in file delegate always align left even in compact layout as this looks better. Also fix margins. BUG: 463327
This commit is contained in:
@@ -33,10 +33,7 @@ TimelineContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
innerObject: RowLayout {
|
innerObject: RowLayout {
|
||||||
|
Layout.maximumWidth: Math.min(fileDelegate.contentMaxWidth, implicitWidth)
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.maximumWidth: fileDelegate.contentMaxWidth
|
|
||||||
Layout.margins: Kirigami.Units.largeSpacing
|
|
||||||
|
|
||||||
spacing: Kirigami.Units.largeSpacing
|
spacing: Kirigami.Units.largeSpacing
|
||||||
|
|
||||||
@@ -111,24 +108,16 @@ TimelineContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
QQC2.Label {
|
QQC2.Label {
|
||||||
text: model.display
|
text: model.display
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
}
|
||||||
QQC2.Label {
|
QQC2.Label {
|
||||||
id: sizeLabel
|
id: sizeLabel
|
||||||
|
|
||||||
text: Controller.formatByteSize(content.info ? content.info.size : 0)
|
text: Controller.formatByteSize(content.info ? content.info.size : 0)
|
||||||
opacity: 0.7
|
opacity: 0.7
|
||||||
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user