diff --git a/script/server.js b/script/server.js index 9f05f2272..d61c0eb1b 100644 --- a/script/server.js +++ b/script/server.js @@ -2,11 +2,10 @@ const Koa = require('koa'); const path = require('path'); const fs = require('fs'); const app = new Koa(); -const dirPath = path.resolve(__dirname); app.use((ctx) => { ctx.body = fs.readFileSync( - path.join(dirPath, '..', '/bilibili-evolved.dev.js'), + path.resolve(__dirname, '../bilibili-evolved.dev.js'), 'utf-8' ); }); diff --git a/src/style/comment/comment.scss b/src/style/comment/comment.scss index aabe6c2cb..3e5315d67 100644 --- a/src/style/comment/comment.scss +++ b/src/style/comment/comment.scss @@ -161,13 +161,13 @@ position: -webkit-sticky !important; position: sticky !important; bottom: 0 !important; - background: linear-gradient(to top, #fff, transparent) !important; + background: linear-gradient(to top, #fff, rgba(255,255,255,0)) !important; pointer-events: none; width: calc(100% + 12px) !important; margin: 0 0 0 -12px !important; padding-left: 97px !important; body.dark & { - background: linear-gradient(to top, #222, transparent) !important; + background: linear-gradient(to top, #222, rgba(255,255,255,0)) !important; } .comment-emoji-lite { background-color: #fff; diff --git a/src/video/scroll-out-player.ts b/src/video/scroll-out-player.ts index ba8fadffe..f9b1f4126 100644 --- a/src/video/scroll-out-player.ts +++ b/src/video/scroll-out-player.ts @@ -85,7 +85,6 @@ let createObserver = (mode?: string) => e.isIntersecting ? intersectingCall() : disIntersectingCall(); }, { - root: document, threshold: getToTop(mode ? mode : settings.scrollOutPlayerTriggerPlace), } );