fixing LibraryItem's subtitles

This commit is contained in:
Chris Cochrun 2024-09-24 14:38:52 -05:00
parent c3a61d51cf
commit 10d1440f5d

View file

@ -251,15 +251,23 @@ ColumnLayout {
implicitWidth: libraryList.width implicitWidth: libraryList.width
height: selectedLibrary == libraryType ? 50 : 0 height: selectedLibrary == libraryType ? 50 : 0
text: title text: title
/* subtitle: { */ Controls.Label {
/* if (libraryType == "song") */ anchors.top: parent.verticalCenter
/* author */ anchors.topMargin: Kirigami.Units.gridUnit / 2
/* else if (fileValidation) */ anchors.left: parent.left
/* filePath; */ anchors.leftMargin: Kirigami.Units.gridUnit * 1.7
/* else */ font.pointSize: 9
/* "file is missing" */ text: {
/* } */ if (libraryType == "song")
author
else if (fileValidation)
filePath.substr(7);
else
"file is missing";
}
elide: Text.ElideRight
}
icon.source: itemIcon icon.source: itemIcon
icon.width: Kirigami.Units.gridUnit icon.width: Kirigami.Units.gridUnit