mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Pad the loading spinner
This commit is contained in:
parent
1d3579196a
commit
0971fd0fcc
1 changed files with 14 additions and 4 deletions
|
@ -477,13 +477,23 @@ ScrollView {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
footer: Spinner {
|
footer: Item {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
anchors.margins: Nheko.paddingLarge
|
||||||
|
visible: chat.model && chat.model.paginationInProgress
|
||||||
|
// hacky, but works
|
||||||
|
height: loadingSpinner.height + 2 * Nheko.paddingLarge
|
||||||
|
|
||||||
|
Spinner {
|
||||||
|
id: loadingSpinner
|
||||||
|
|
||||||
|
anchors.centerIn: parent
|
||||||
|
anchors.margins: Nheko.paddingLarge
|
||||||
running: chat.model && chat.model.paginationInProgress
|
running: chat.model && chat.model.paginationInProgress
|
||||||
foreground: Nheko.colors.mid
|
foreground: Nheko.colors.mid
|
||||||
visible: chat.model && chat.model.paginationInProgress
|
|
||||||
z: 3
|
z: 3
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue