From b170174a84cb01c5464d00f374e451b89929abb9 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 27 Jan 2019 05:25:05 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80=20=D1=82=D0=B5=D0=BA=D1=81?= =?UTF-8?q?=D1=82=D0=B0,=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Reader/HistoryPage/HistoryPage.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/client/components/Reader/HistoryPage/HistoryPage.vue b/client/components/Reader/HistoryPage/HistoryPage.vue index ee7eb4b2..b49b047c 100644 --- a/client/components/Reader/HistoryPage/HistoryPage.vue +++ b/client/components/Reader/HistoryPage/HistoryPage.vue @@ -58,7 +58,7 @@ min-width="100px" > @@ -117,16 +117,19 @@ class HistoryPage extends Vue { const t = formatDate(d).split(' '); let perc = ''; + let textLen = ''; const p = (book.bookPosSeen ? book.bookPosSeen : (book.bookPos ? book.bookPos : 0)); - if (book.textLength) + if (book.textLength) { perc = ` [${((p/book.textLength)*100).toFixed(2)}%]`; + textLen = ` ${Math.round(book.textLength/1000)}k`; + } result.push({ touchDateTime: book.touchTime, touchDate: t[0], touchTime: t[1], desc: { - title: `"${book.fb2.bookTitle}"${perc}`, + title: `"${book.fb2.bookTitle}"${perc}${textLen}`, author: _.compact([ book.fb2.lastName, book.fb2.firstName, @@ -216,12 +219,6 @@ class HistoryPage extends Vue { padding: 0; } -.clickable { - color: blue; - text-decoration: underline; - cursor: pointer; -} - .desc { cursor: pointer; }