booru: fix image placement, gives single images big radius

the latter adds visual interest with some variation
This commit is contained in:
end-4
2025-05-24 09:51:39 +02:00
parent 1929b6dc8e
commit ac8314931f
2 changed files with 19 additions and 15 deletions
@@ -233,6 +233,7 @@ Rectangle {
}
delegate: RowLayout {
id: imageRow
required property var modelData
property var rowHeight: modelData.height
spacing: root.imageSpacing
@@ -242,6 +243,7 @@ Rectangle {
required property var modelData
imageData: modelData
rowHeight: imageRow.rowHeight
imageRadius: imageRow.modelData.images.length == 1 ? 50 : Appearance.rounding.normal
manualDownload: ["danbooru", "waifu.im"].includes(root.responseData.provider)
previewDownloadPath: root.previewDownloadPath
downloadPath: root.downloadPath