Работа над группировкой

This commit is contained in:
Book Pauk
2022-07-12 16:51:32 +07:00
parent 04a326c0e4
commit 72431f0202
3 changed files with 32 additions and 20 deletions

View File

@@ -70,15 +70,16 @@
{{ item.desc.author }}
</div>
<div>{{ item.desc.title }}</div>
<!--div>{{ item.path }}</div-->
</div>
<div class="row q-mt-xs" style="font-size: 80%">
<div class="row justify-center row-info-bottom" style="width: 50px">
{{ item.desc.perc }}
</div>
<div class="row justify-center row-info-bottom" style="width: 50px">
<div class="row justify-center row-info-bottom" style="width: 60px">
{{ item.desc.textLen }}
</div>
<div class="row justify-center row-info-bottom" style="width: 60px">
{{ item.desc.perc }}
</div>
<div class="row justify-center row-info-bottom" style="width: 1px">
</div>
</div>
@@ -285,7 +286,7 @@ class RecentBooksPage {
if (book.textLength) {
readPart = p/book.textLength;
perc = `${(readPart*100).toFixed(2)}%`;
textLen = `${Math.round(book.textLength/1000)}k`;
textLen = `${Math.floor(readPart*book.textLength/1000)}/${Math.floor(book.textLength/1000)}`;
}
const bt = utils.getBookTitle(book.fb2);