Add back history view cover photos

This commit is contained in:
Agel committed 2026-04-17 00:12:13 +02:00
1 parent 9e19a76a5a
commit 116fcdf7a4
11 files changed
+476 -28

No files matched your search

+18 -5
View File
@@ -38,19 +38,32 @@ Rectangle {
anchors.bottomMargin: 12
spacing: 8
Image {
id: coverImage
Item {
id: coverSlot
visible: filePath !== ""
width: 60
height: 80
source: coverImageUrl
fillMode: Image.PreserveAspectFit
anchors.verticalCenter: parent.verticalCenter
Image {
anchors.fill: parent
source: filePath !== "" ? ("image://fileicon/" + filePath) : ""
fillMode: Image.PreserveAspectFit
visible: coverImage.status !== Image.Ready
}
Image {
id: coverImage
anchors.fill: parent
source: coverImageUrl
fillMode: Image.PreserveAspectFit
visible: status === Image.Ready
}
}
Column {
id: bookInfoCol
width: parent.width - removeBtn.width - parent.spacing - (coverImage.visible ? coverImage.width + 8 : 0)
width: parent.width - removeBtn.width - parent.spacing - (coverSlot.visible ? coverSlot.width + parent.spacing : 0)
anchors.verticalCenter: parent.verticalCenter
spacing: 3