Make sure the file delegate label fill the width and elide if needed.

This commit is contained in:
James Graham
2023-04-02 14:13:45 +01:00
committed by Tobias Fella
parent f10805dddb
commit 918e9e492a

View File

@@ -110,14 +110,18 @@ TimelineContainer {
ColumnLayout {
spacing: 0
QQC2.Label {
Layout.fillWidth: true
text: model.display
wrapMode: Text.Wrap
elide: Text.ElideRight
}
QQC2.Label {
id: sizeLabel
Layout.fillWidth: true
text: Controller.formatByteSize(content.info ? content.info.size : 0)
opacity: 0.7
elide: Text.ElideRight
maximumLineCount: 1
}
}