From 4e34ab3deac82ec1dbae11166dc5db1e11be3cb6 Mon Sep 17 00:00:00 2001 From: qiuweimeng Date: Tue, 28 Mar 2023 11:32:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A38=E5=88=86=E8=AF=84=E4=BB=B7?= =?UTF-8?q?=E6=97=B6=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/bangumi-generator.js | 1 + src/lib/templates/index.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bangumi-generator.js b/lib/bangumi-generator.js index 8c27ef1..659bffb 100644 --- a/lib/bangumi-generator.js +++ b/lib/bangumi-generator.js @@ -111,6 +111,7 @@ module.exports = /*#__PURE__*/function () { source: (_config$type$source = config[type].source) !== null && _config$type$source !== void 0 ? _config$type$source : 'bili', showMyComment: (_config$type$showMyCo = config[type].showMyComment) !== null && _config$type$showMyCo !== void 0 ? _config$type$showMyCo : false, pagination: (_config$type$paginati = config[type].pagination) !== null && _config$type$paginati !== void 0 ? _config$type$paginati : false, + theme: fs.existsSync(path.join(__dirname, "".concat(config.theme, ".css"))) ? config.theme : null, ejsTemplate: fs.readFileSync(path.join(__dirname, "templates/".concat(config[type].source === 'bgm' ? 'bgm' : 'bili', "-template.ejs"))).toString().replace('class="bangumi-item"', 'class="bangumi-item bangumi-hide"'), wantWatch: wantWatch, watched: watched, diff --git a/src/lib/templates/index.css b/src/lib/templates/index.css index 6f35c8a..773da1c 100644 --- a/src/lib/templates/index.css +++ b/src/lib/templates/index.css @@ -267,7 +267,7 @@ a.bangumi-tab { } .bangumi-starlight.stars8 { - width: 405px; + width: 40px; } .bangumi-starlight.stars9 {