update setting

This commit is contained in:
Harvey Zack committed 2023-04-18 18:17:39 +08:00
1 parent 4ba822fdf2
commit 6b6fca8b74
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -367,8 +367,8 @@ export default class Setting extends Component {
const { left: playerLeft, width: playerWidth } = $player.getBoundingClientRect();
const settingLeft = controlLeft - playerLeft + controlWidth / 2 - settingWidth / 2;
if (settingLeft + settingWidth > playerWidth) {
setStyle($setting, 'left', 'auto');
setStyle($setting, 'right', '10px');
setStyle($setting, 'left', null);
setStyle($setting, 'right', null);
} else {
setStyle($setting, 'left', `${settingLeft}px`);
setStyle($setting, 'right', 'auto');