mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-24 20:54:43 +02:00
Fix:Fetch more library items per request to fill screen size #265
This commit is contained in:
parent
317dc366e3
commit
a41e26e4c6
1 changed files with 3 additions and 0 deletions
|
@ -302,6 +302,9 @@ export default {
|
|||
this.shelvesPerPage = Math.ceil(this.bookshelfHeight / this.shelfHeight) + 2
|
||||
this.bookshelfMarginLeft = (this.bookshelfWidth - this.entitiesPerShelf * this.totalEntityCardWidth) / 2
|
||||
|
||||
const entitiesPerPage = this.shelvesPerPage * this.entitiesPerShelf
|
||||
this.booksPerFetch = Math.ceil(entitiesPerPage / 20) * 20 // Round up to the nearest 20
|
||||
|
||||
if (this.totalEntities) {
|
||||
this.totalShelves = Math.ceil(this.totalEntities / this.entitiesPerShelf)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue