mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 10:01:20 -08:00
Setting (#502)
* init
* remove updateStyle
* Revert "remove updateStyle"
This reverts commit 053654ae72.
* add --art-tip-background
This commit is contained in:
1 parent
4b9e8dfc9d
commit
058325d3cc
13 files changed
+32
-37
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
append,
|
||||
addClass,
|
||||
setStyle,
|
||||
isMobile,
|
||||
inverseClass,
|
||||
createElement,
|
||||
includeFromEvent,
|
||||
@@ -60,9 +61,7 @@ export default class Setting extends Component {
|
||||
const item = option[index];
|
||||
item.$parentItem = parentItem;
|
||||
item.$parentList = parentList;
|
||||
if (item.selector) {
|
||||
Setting.makeRecursion(item.selector, item, option);
|
||||
}
|
||||
Setting.makeRecursion(item.selector || [], item, option);
|
||||
}
|
||||
return option;
|
||||
}
|
||||
@@ -362,7 +361,7 @@ export default class Setting extends Component {
|
||||
template: { $player, $setting },
|
||||
} = this.art;
|
||||
|
||||
if (controls.setting) {
|
||||
if (controls.setting && !isMobile) {
|
||||
const settingWidth = width || constructor.SETTING_WIDTH;
|
||||
const { left: controlLeft, width: controlWidth } = controls.setting.getBoundingClientRect();
|
||||
const { left: playerLeft, width: playerWidth } = $player.getBoundingClientRect();
|
||||
@@ -374,9 +373,6 @@ export default class Setting extends Component {
|
||||
setStyle($setting, 'left', `${settingLeft}px`);
|
||||
setStyle($setting, 'right', 'auto');
|
||||
}
|
||||
} else {
|
||||
setStyle($setting, 'left', 'auto');
|
||||
setStyle($setting, 'right', '10px');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user