Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhw2590582 committed May 14, 2023
1 parent 7bb6af0 commit f330081
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 49 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [5.0.9] - 2023-5-14

- 修复 `art.autoOrientation` 样式错误问题
- 移除播放器容器的动画效果

## [5.0.8] - 2023-5-13

- 修复 `art.mini` 的互斥关系
Expand Down
4 changes: 2 additions & 2 deletions docs/compiled/artplayer.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/compiled/artplayer.legacy.js

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions docs/uncompiled/artplayer/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/uncompiled/artplayer/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/artplayer/dist/artplayer.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/artplayer/dist/artplayer.legacy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/artplayer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"license": "MIT",
"name": "artplayer",
"version": "5.0.8",
"version": "5.0.9",
"main": "dist/artplayer.js",
"legacy": "dist/artplayer.legacy.js",
"types": "types/artplayer.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion packages/artplayer/src/player/fullscreenWebMix.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addClass, removeClass, hasClass, def, append } from '../utils';
import { addClass, removeClass, hasClass, def, append, setStyle } from '../utils';

export default function fullscreenWebMix(art) {
const {
Expand All @@ -18,6 +18,8 @@ export default function fullscreenWebMix(art) {
append(document.body, $player);
}
art.state = 'fullscreenWeb';
setStyle($player, 'width', '100%');
setStyle($player, 'height', '100%');
addClass($player, 'art-fullscreen-web');
art.emit('fullscreenWeb', true);
} else {
Expand Down
1 change: 0 additions & 1 deletion packages/artplayer/src/style/artplayer.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
color: var(--art-font-color);
background-color: var(--art-background-color);
text-shadow: 0 0 2px var(--art-text-shadow-color);
transition: width, height var(--art-transition-duration) ease;
font-family: PingFang SC, Helvetica Neue, Microsoft YaHei, Roboto, Arial, sans-serif;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-ms-touch-action: manipulation;
Expand Down
2 changes: 0 additions & 2 deletions packages/artplayer/src/style/fullscreenWeb.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.art-fullscreen-web {
.art-fullscreen();
.art-full(var(--art-fullscreen-web-index), fixed);
width: 100% !important;
height: 100% !important;
}
60 changes: 30 additions & 30 deletions packages/artplayer/src/style/index.less
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
@import './variables.less';
@import './mixins.less';
@import './artplayer.less';
@import './icon.less';
@import './backdrop.less';
@import './video.less';
@import './poster.less';
@import './subtitle.less';
@import './danmuku.less';
@import './layers.less';
@import './mask.less';
@import './loading.less';
@import './bottom.less';
@import './progress.less';
@import './controls.less';
@import './volume.less';
@import './notice.less';
@import './contextmenu.less';
@import './setting.less';
@import './info.less';
@import './hideCursor.less';
@import './aspectRatio.less';
@import './fullscreen.less';
@import './fullscreenWeb.less';
@import './mini.less';
@import './flip.less';
@import './plugins.less';
@import './selector.less';
@import './hint.less';
@import './mobile.less';
@import './variables';
@import './mixins';
@import './artplayer';
@import './icon';
@import './backdrop';
@import './video';
@import './poster';
@import './subtitle';
@import './danmuku';
@import './layers';
@import './mask';
@import './loading';
@import './bottom';
@import './progress';
@import './controls';
@import './volume';
@import './notice';
@import './contextmenu';
@import './setting';
@import './info';
@import './hideCursor';
@import './aspectRatio';
@import './fullscreen';
@import './fullscreenWeb';
@import './mini';
@import './flip';
@import './plugins';
@import './selector';
@import './hint';
@import './mobile';

0 comments on commit f330081

Please sign in to comment.