Skip to content

Commit

Permalink
v5.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
zhw2590582 committed May 3, 2023
1 parent 601836c commit c301844
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 25 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [5.0.6] - 2023-5-3

- 修复设置面板的样式错误

## [5.0.5] - 2023-5-3

- 弹幕插件添加 `heatmap` 选项,用于是否开启热度图,默认为关闭
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.

16 changes: 9 additions & 7 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.

4 changes: 2 additions & 2 deletions 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.5",
"version": "5.0.6",
"main": "dist/artplayer.js",
"legacy": "dist/artplayer.legacy.js",
"types": "types/artplayer.d.ts",
Expand All @@ -24,4 +24,4 @@
"dependencies": {
"option-validator": "^2.0.6"
}
}
}
6 changes: 4 additions & 2 deletions packages/artplayer/src/setting/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ export default class Setting extends Component {
}

creatHeader(item) {
const { icons, proxy } = this.art;
const { icons, proxy, constructor } = this.art;
const $item = createElement('div');
setStyle($item, 'height', `${constructor.SETTING_ITEM_HEIGHT}px`);
addClass($item, 'art-setting-item');
addClass($item, 'art-setting-item-back');
const $left = append($item, '<div class="art-setting-item-left"></div>');
Expand All @@ -166,10 +167,11 @@ export default class Setting extends Component {
}

creatItem(type, item) {
const { icons, proxy } = this.art;
const { icons, proxy, constructor } = this.art;

const $item = createElement('div');
addClass($item, 'art-setting-item');
setStyle($item, 'height', `${constructor.SETTING_ITEM_HEIGHT}px`);

if (isStringOrNumber(item.name)) {
$item.dataset.name = item.name;
Expand Down
1 change: 0 additions & 1 deletion packages/artplayer/src/style/mobile.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
--art-control-height: 38px;
--art-control-icon-scale: 1;
--art-state-size: 60px;
--art-settings-scale: 0.85;
--art-settings-max-height: 180px;
--art-selector-max-height: 180px;
--art-indicator-scale: 1;
Expand Down
2 changes: 0 additions & 2 deletions packages/artplayer/src/style/setting.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

.art-setting-panel {
display: none;
height: 100%;
flex-direction: column;

&.art-current {
Expand All @@ -29,7 +28,6 @@
display: flex;
justify-content: space-between;
align-items: center;
flex: 1;
padding: 0 5px;
cursor: pointer;
overflow: hidden;
Expand Down
1 change: 0 additions & 1 deletion packages/artplayer/src/style/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
--art-indicator-scale: 0;
--art-indicator-size: 16px;
--art-fullscreen-web-index: 9999;
--art-settings-scale: 1;
--art-settings-icon-size: 24px;
--art-settings-max-height: 300px;
--art-selector-max-height: 300px;
Expand Down
1 change: 0 additions & 1 deletion packages/artplayer/types/cssVar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export type CssVar = {
'--art-indicator-scale': number;
'--art-indicator-size': string;
'--art-fullscreen-web-index': 9999;
'--art-settings-scale': number;
'--art-settings-icon-size': string;
'--art-settings-max-height': string;
'--art-selector-max-height': string;
Expand Down

0 comments on commit c301844

Please sign in to comment.