mirror of
https://github.com/gotson/komga.git
synced 2025-12-21 16:03:03 +01:00
fix(webreader): stretched images on Safari with fit to Width
This commit is contained in:
parent
01c9ffe818
commit
74f9305e16
1 changed files with 5 additions and 0 deletions
|
|
@ -143,11 +143,13 @@
|
|||
<img :src="getPageUrl(p)"
|
||||
:height="maxHeight"
|
||||
:width="maxWidth(p)"
|
||||
:style="imgStyle"
|
||||
/>
|
||||
<img v-if="doublePages && p !== 1 && p !== pagesCount && p+1 !== pagesCount"
|
||||
:src="getPageUrl(p+1)"
|
||||
:height="maxHeight"
|
||||
:width="maxWidth(p+1)"
|
||||
:style="imgStyle"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -412,6 +414,9 @@ export default Vue.extend({
|
|||
maxHeight (): number | null {
|
||||
return this.imageFit === ImageFit.HEIGHT ? this.$vuetify.breakpoint.height : null
|
||||
},
|
||||
imgStyle (): string {
|
||||
return this.imageFit === ImageFit.WIDTH ? 'height:intrinsic' : ''
|
||||
},
|
||||
slidesRange (): number[] {
|
||||
if (!this.doublePages) {
|
||||
return this.$_.range(1, this.pagesCount + 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue