booru: fix 1image row width, add actions menu

This commit is contained in:
end-4
2025-04-30 00:43:10 +02:00
parent d08d0a8914
commit fef0cc366a
5 changed files with 170 additions and 26 deletions
@@ -26,7 +26,7 @@ Rectangle {
}
property real availableWidth: parent.width ?? 0
property real rowTooShortThreshold: 100
property real rowTooShortThreshold: 185
property real imageSpacing: 5
property real responsePadding: 5
@@ -190,9 +190,9 @@ Rectangle {
}
}
// Otherwise, put only one image in the row
const rowHeight = availableImageWidth / responseList[i].aspect_ratio;
const rowHeight = (availableWidth - (responsePadding * 2)) / responseList[i].aspect_ratio;
rows.push({
height: availableWidth / responseList[i].aspect_ratio,
height: rowHeight,
images: [responseList[i]],
});
i += 1;