booru: style changes, tag button dont add space at beginning

This commit is contained in:
end-4
2025-04-29 11:10:53 +02:00
parent 5543efac7a
commit 891da6c522
3 changed files with 32 additions and 9 deletions
@@ -97,18 +97,32 @@ Item {
spacing: 10
model: ScriptModel {
values: Booru.responses
values: {
console.log(JSON.stringify(Booru.responses))
return Booru.responses
}
}
delegate: BooruResponse {
responseData: modelData
responseData: {
console.log("Data at index " + index + ": " + JSON.stringify(modelData))
return modelData
}
tagInputField: root.inputField
}
}
Item { // Placeholder when list is empty
visible: Booru.responses.length === 0
opacity: Booru.responses.length === 0 ? 1 : 0
visible: opacity > 0
anchors.fill: parent
Behavior on opacity {
NumberAnimation {
duration: Appearance.animation.elementDecel.duration
easing.type: Appearance.animation.elementDecel.type
}
}
ColumnLayout {
anchors.centerIn: parent
spacing: 5