Skip to content

Commit

Permalink
deploy: d32d1f6
Browse files Browse the repository at this point in the history
  • Loading branch information
Izumiko committed Jan 23, 2024
1 parent 9b63790 commit dfb8513
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ede.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @description Jellyfin弹幕插件
// @namespace https://github.com/RyoLee
// @author RyoLee
// @version 1.20
// @version 1.21
// @copyright 2022, RyoLee (https://github.com/RyoLee)
// @license MIT; https://raw.githubusercontent.com/Izumiko/jellyfin-danmaku/jellyfin/LICENSE
// @icon https://github.githubassets.com/pinned-octocat.svg
Expand Down Expand Up @@ -625,7 +625,8 @@
wrapper.id = 'danmakuWrapper';
wrapper.style.position = 'absolute';
wrapper.style.width = '100%';
wrapper.style.height = window.ede.heightRatio * 100 + '%';
wrapper.style.height = `calc(${window.ede.heightRatio * 100}% - 18px)`;
wrapper.style.opacity = window.ede.opacity;
wrapper.style.top = '18px';
wrapper.style.overflow = 'hidden';
_container.prepend(wrapper);
Expand All @@ -635,12 +636,9 @@
media: _media,
comments: _comments,
engine: 'canvas',
speed: window.ede.speed,
});

wrapper.lastChild.style.opacity = window.ede.opacity;
window.ede.danmaku.speed = window.ede.speed
wrapper.style.height = `${window.ede.heightRatio * 100}%`;

window.ede.danmakuSwitch == 1 ? window.ede.danmaku.show() : window.ede.danmaku.hide();
if (window.ede.obResize) {
window.ede.obResize.disconnect();
Expand Down

0 comments on commit dfb8513

Please sign in to comment.