better and better

This commit is contained in:
Dark Steveneq
2025-10-20 02:53:30 +02:00
parent c168086601
commit 5ac6248c66
8 changed files with 114 additions and 125 deletions

View File

@@ -11,12 +11,10 @@ Item {
property bool failed: false
GridView {
width: Math.floor(cellWidth / parent.width) * cellWidth
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
// anchors.topMargin: Player.active ? 96 : 0
width: Math.floor(parent.width / cellWidth) * cellWidth
visible: !loading || !failed
anchors.fill: parent
anchors.horizontalCenter: parent.horizontalCenter
model: ListModel { id: model }
clip: true
@@ -25,7 +23,7 @@ Item {
delegate: VideoEntry {}
Component.onCompleted: console.log(cellWidth / parent.width)
Component.onCompleted: console.log(parent.width / cellWidth)
}
BusyIndicator {
@@ -58,12 +56,12 @@ Item {
Button {
text: "Retry"
onClicked: parent.fetchData()
onClicked: parent.parent.fetchData()
}
}
Timer {
interval: 1000
interval: 0
running: true
onTriggered: parent.fetchData()
}