From 95b3bdabea64e3e1e8e3d1d5588bbb9152e1b074 Mon Sep 17 00:00:00 2001 From: Kylart Date: Sat, 4 Mar 2017 22:23:34 +0100 Subject: [PATCH] Slightly improved localPage UI --- .idea/inspectionProfiles/Project_Default.xml | 3 ++- src/localPage/functions.js | 2 +- src/localPage/index.js | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 937e30d..bda350d 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -41,7 +41,7 @@ diff --git a/src/localPage/functions.js b/src/localPage/functions.js index 6448be0..c19992a 100644 --- a/src/localPage/functions.js +++ b/src/localPage/functions.js @@ -64,7 +64,7 @@ exports.searchAnime = (filename, object) => { mal.fromName(filename).then((anime) => { result.picture = anime.image - result.synopsis = anime.synopsis.slice(0, 200) + '...' + result.synopsis = anime.synopsis.slice(0, 170) + '...' result.numberOfEpisodes = anime.episodes.replace('Unknown', 'NC') result.status = anime.status result.year = anime.aired.split(' ')[2] diff --git a/src/localPage/index.js b/src/localPage/index.js index 7fdb98d..0533571 100644 --- a/src/localPage/index.js +++ b/src/localPage/index.js @@ -14,7 +14,7 @@ const html = `