Skip to content

Commit

Permalink
Merge pull request #717 from axylen/fix-miniplayer-in-darkmode
Browse files Browse the repository at this point in the history
Fix miniplayer
  • Loading branch information
victor-savinov authored Jan 27, 2021
2 parents 3695315 + a07081a commit 85e800e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions content-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2539,6 +2539,7 @@ html[it-dawn-theme=true]:not([it-schedule=system_peference_dark]):not([it-schedu
-webkit-filter: grayscale(1) brightness(4);
filter: grayscale(1) brightness(4);
}
}

[it-youtube-version=old][it-default-dark-theme=true]:not([it-schedule=system_peference_dark]):not([it-schedule=system_peference_light])
{
Expand Down
2 changes: 2 additions & 0 deletions youtube-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1732,6 +1732,8 @@ ImprovedTube.mini_player__resize_mouseUp = function(event) {
ImprovedTube.mini_player__width = bcr.width;
ImprovedTube.mini_player__height = bcr.height;

window.dispatchEvent(new Event('resize'));

var strg = JSON.parse(localStorage.getItem('improedtube-mini-player')) || {};

strg.width = ImprovedTube.mini_player__width;
Expand Down

0 comments on commit 85e800e

Please sign in to comment.