Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
use css-base-i18n-fix.css to fix prefomance issue
Eltirosto/Degrees-of-Lewdity-Chinese-Localization#203
  • Loading branch information
Lyoko-Jeremie committed Nov 20, 2023
1 parent 412d950 commit f405f27
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
32 changes: 2 additions & 30 deletions boot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "ModI18N",
"version": "1.2.0",
"version": "1.2.1",
"styleFileList": [
"css-base-i18n-fix.css"
],
"scriptFileList_earlyload": [
"dist/earlyload/earlyload.js"
Expand Down Expand Up @@ -31,31 +32,6 @@
"params": [
]
},
{
"modName": "ModuleCssReplacer",
"addonName": "ModuleCssReplacerAddon",
"modVersion": "^1.0.0",
"params": [
{
"cssName": "base",
"findString": "max-height: 2.4em;",
"replace": "max-height: 7em;",
"debug": false
},
{
"cssName": "base",
"findString": "content: \" months\";",
"replace": "content: \" 月数\";",
"debug": false
},
{
"cssName": "base",
"findString": "content: \" weeks\";",
"replace": "content: \" 周数\";",
"debug": false
}
]
}
],
"dependenceInfo": [
{
Expand All @@ -69,10 +45,6 @@
{
"modName": "ModLoader DoL ImageLoaderHook",
"version": "^2.3.0"
},
{
"modName": "ModuleCssReplacer",
"version": "^1.0.0"
}
]
}
14 changes: 14 additions & 0 deletions css-base-i18n-fix.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

#numberslider-value-humanpregnancymonths::after {
content: " 月数" !important;
}

#numberslider-value-wolfpregnancyweeks::after {
content: " 周数" !important;
}

@media (min-width: 40rem) {
#savesListContainer .savesListRow {
max-height: 7em !important;
}
}

0 comments on commit f405f27

Please sign in to comment.