mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-03 01:24:37 +02:00
Fix cover height overflow on fullscreen audio player
This commit is contained in:
parent
a8c66ff808
commit
ccd206e95d
1 changed files with 8 additions and 1 deletions
|
@ -230,7 +230,14 @@ export default {
|
|||
// Portrait
|
||||
let sideSpace = 20
|
||||
if (this.bookCoverAspectRatio === 1.6) sideSpace += (this.windowWidth - sideSpace) * 0.375
|
||||
return this.windowWidth - sideSpace
|
||||
|
||||
const availableHeight = this.windowHeight - 400
|
||||
let width = this.windowWidth - sideSpace
|
||||
const totalHeight = width * this.bookCoverAspectRatio
|
||||
if (totalHeight > availableHeight) {
|
||||
width = availableHeight / this.bookCoverAspectRatio
|
||||
}
|
||||
return width
|
||||
} else {
|
||||
// Landscape
|
||||
const heightScale = (this.windowHeight - 200) / 651
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue