Refactor Artplayer class to remove unnecessary CSS transformations in setting.less

This commit is contained in:
Harvey Zack committed 2024-10-20 22:35:14 +08:00
1 parent 0d5757b51c
commit 477331b0e2
4 files changed
+5 -7

No files matched your search

+1 -1
View File
@@ -150,7 +150,7 @@ export default class Setting extends Component {
template: { $player, $setting },
} = this.art;
if (controls.setting && this.show && !isMobile) {
if (controls.setting && this.show) {
const settingWidth = this.active[0]?.$parent?.width || SETTING_WIDTH;
const { left: controlLeft, width: controlWidth } = getRect(controls.setting);
const { left: playerLeft, width: playerWidth } = getRect($player);