diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue
index e7517c96..4772d8d2 100644
--- a/client/components/Reader/Reader.vue
+++ b/client/components/Reader/Reader.vue
@@ -82,7 +82,7 @@
@stop-text-search="stopTextSearch">
-
+
@@ -342,7 +342,7 @@ class Reader extends Vue {
const showButtonCount = Object.values(this.showToolButton).reduce((a, b) => a + (b ? 1 : 0), 0);
if (this.$refs.buttons)
this.$refs.buttons.style.minWidth = 65*showButtonCount + 'px';
- (async () => {
+ (async() => {
await utils.sleep(1000);
if (this.$refs.header)
this.$refs.header.style.overflowX = 'auto';
@@ -682,6 +682,10 @@ class Reader extends Vue {
}
}
+ recentBooksClose() {
+ this.recentBooksActive = false;
+ }
+
recentBooksToggle() {
this.recentBooksActive = !this.recentBooksActive;
if (this.recentBooksActive) {
@@ -916,6 +920,8 @@ class Reader extends Vue {
return;
}
+ this.closeAllTextPages();
+
let url = encodeURI(decodeURI(opts.url));
if ((url.indexOf('http://') != 0) && (url.indexOf('https://') != 0) &&
diff --git a/client/components/Reader/RecentBooksPage/RecentBooksPage.vue b/client/components/Reader/RecentBooksPage/RecentBooksPage.vue
index 312f5020..2a6cee37 100644
--- a/client/components/Reader/RecentBooksPage/RecentBooksPage.vue
+++ b/client/components/Reader/RecentBooksPage/RecentBooksPage.vue
@@ -315,7 +315,7 @@ class RecentBooksPage extends Vue {
}
close() {
- this.$emit('recent-books-toggle');
+ this.$emit('recent-books-close');
}
keyHook(event) {