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 {