mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02:00
parent
13760c5ef3
commit
85ddae4f48
1 changed files with 12 additions and 0 deletions
|
|
@ -420,6 +420,8 @@ export default Vue.extend({
|
||||||
if (screenfull.isEnabled) screenfull.on('change', this.fullscreenChanged)
|
if (screenfull.isEnabled) screenfull.on('change', this.fullscreenChanged)
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
document.documentElement.classList.add('html-reader')
|
||||||
|
|
||||||
this.$debug('[mounted]', 'route.query:', this.$route.query)
|
this.$debug('[mounted]', 'route.query:', this.$route.query)
|
||||||
|
|
||||||
this.readingDirection = this.$store.state.persistedState.webreader.readingDirection
|
this.readingDirection = this.$store.state.persistedState.webreader.readingDirection
|
||||||
|
|
@ -435,6 +437,8 @@ export default Vue.extend({
|
||||||
this.setup(this.bookId, Number(this.$route.query.page))
|
this.setup(this.bookId, Number(this.$route.query.page))
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
|
document.documentElement.classList.remove('html-reader')
|
||||||
|
|
||||||
this.$vuetify.rtl = (this.$t('common.locale_rtl') === 'true')
|
this.$vuetify.rtl = (this.$t('common.locale_rtl') === 'true')
|
||||||
window.removeEventListener('keydown', this.keyPressed)
|
window.removeEventListener('keydown', this.keyPressed)
|
||||||
if (screenfull.isEnabled) {
|
if (screenfull.isEnabled) {
|
||||||
|
|
@ -864,3 +868,11 @@ export default Vue.extend({
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<style>
|
||||||
|
.html-reader::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.html-reader {
|
||||||
|
scrollbar-width: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue