From 918e9e492a06ff4f129939bd789ad887ba5b7ff6 Mon Sep 17 00:00:00 2001 From: James Graham Date: Sun, 2 Apr 2023 14:13:45 +0100 Subject: [PATCH] Make sure the file delegate label fill the width and elide if needed. --- src/qml/Component/Timeline/FileDelegate.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/qml/Component/Timeline/FileDelegate.qml b/src/qml/Component/Timeline/FileDelegate.qml index 109f95f28..368224647 100644 --- a/src/qml/Component/Timeline/FileDelegate.qml +++ b/src/qml/Component/Timeline/FileDelegate.qml @@ -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 } }