From 1d1cf99df7a63fb2d3d47934b824232cfefa3e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=AE=E5=B8=AE?= <3102509561@qq.com> Date: Sat, 19 Aug 2023 15:05:07 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 帮帮 <3102509561@qq.com> --- plugins/genshin/model/ledger.js | 8 +++++--- plugins/genshin/resources/StarRail/html/ledger/ledger.css | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/genshin/model/ledger.js b/plugins/genshin/model/ledger.js index 074d270..b03fa74 100644 --- a/plugins/genshin/model/ledger.js +++ b/plugins/genshin/model/ledger.js @@ -120,10 +120,12 @@ export default class Ledger extends base { ledgerInfo.color = [] ledgerInfo.month_data.group_by.forEach((item) => { - if (this.e.isSr) + if (this.e.isSr){ item.color = this.color[this.action[item.action]] - else + item.action_name = item.action_name.slice(0, 4) + } else { item.color = this.color[item.action_id] + } ledgerInfo.color.push(item.color) }) @@ -412,7 +414,7 @@ export default class Ledger extends base { if (this.e.isSr) groupBy.forEach((item) => { item.action_id = this.action[item.action] - item.action = item.action_name + item.action = item.action_name.slice(0, 4) }) let pieData = {} diff --git a/plugins/genshin/resources/StarRail/html/ledger/ledger.css b/plugins/genshin/resources/StarRail/html/ledger/ledger.css index 1df8aa4..3c32af0 100644 --- a/plugins/genshin/resources/StarRail/html/ledger/ledger.css +++ b/plugins/genshin/resources/StarRail/html/ledger/ledger.css @@ -260,7 +260,7 @@ img { width: 440px; height: 440px; background: url(../../img/other/chart.png) no-repeat 50% / cover; - margin-left: 60px; + margin-left: 70px; } .tooltip { @@ -284,7 +284,7 @@ img { } .tooltip li .action { - width: 300px; + width: 250px; } .tooltip li em {