diff --git a/client/components/Reader/RecentBooksPage/RecentBooksPage.vue b/client/components/Reader/RecentBooksPage/RecentBooksPage.vue
index ceebe551..6eb0b65a 100644
--- a/client/components/Reader/RecentBooksPage/RecentBooksPage.vue
+++ b/client/components/Reader/RecentBooksPage/RecentBooksPage.vue
@@ -56,6 +56,7 @@
{{ props.row.desc.author }}
{{ props.row.desc.title }}
+
@@ -203,11 +204,13 @@ class RecentBooksPage extends Vue {
d.setTime(book.touchTime);
const t = utils.formatDate(d).split(' ');
+ let readPart = 0;
let perc = '';
let textLen = '';
const p = (book.bookPosSeen ? book.bookPosSeen : (book.bookPos ? book.bookPos : 0));
if (book.textLength) {
- perc = ` [${((p/book.textLength)*100).toFixed(2)}%]`;
+ readPart = p/book.textLength;
+ perc = ` [${(readPart*100).toFixed(2)}%]`;
textLen = ` ${Math.round(book.textLength/1000)}k`;
}
@@ -226,6 +229,7 @@ class RecentBooksPage extends Vue {
author,
title: `${title}${perc}${textLen}`,
},
+ readPart,
descString: `${author}${title}${perc}${textLen}`,//для сортировки
url: book.url,
path: book.path,
@@ -354,6 +358,10 @@ class RecentBooksPage extends Vue {
white-space: normal;
}
+.read-bar {
+ height: 3px;
+ background-color: #aaaaaa;
+}