fix: 适应 bpx.ts 中类名变化

- 全局搜索只找到了这一处,不知道还有没有其他地方
This commit is contained in:
ZiuChen 2023-05-09 00:06:00 +08:00
parent 5d132bbe3e
commit ac6e0e40f7
2 changed files with 5 additions and 7 deletions

View File

@ -5,11 +5,9 @@ let cancel: () => void
const prevent = () => {
cancel?.()
cancel = preventEvent(unsafeWindow, 'mousewheel', () => {
const isFullscreen = [
'player-mode-webfullscreen',
'player-fullscreen-fix',
'player-full-win',
].some(token => document.body.classList.contains(token))
const isFullscreen = ['player-mode-full', 'player-fullscreen-fix', 'player-full-win'].some(
token => document.body.classList.contains(token),
)
return isFullscreen
})
}

View File

@ -145,8 +145,8 @@
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
@mixin on-fullscreen($bodyClass: "*") {
#{selector-unify("body.player-mode-webfullscreen", $bodyClass)} &,
@mixin on-fullscreen($bodyClass: '*') {
#{selector-unify("body.player-mode-full", $bodyClass)} &,
#{selector-unify("body.player-fullscreen-fix", $bodyClass)} &,
#{selector-unify("body.player-full-win", $bodyClass)} & {
@content;