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);
@@ -8,11 +8,9 @@
overflow-y: auto;
overflow-x: hidden;
border-radius: var(--art-border-radius);
transform-origin: bottom right;
max-height: var(--art-settings-max-height);
right: var(--art-padding);
bottom: var(--art-control-height);
transform: scale(var(--art-settings-scale));
transition: all var(--art-transition-duration) ease;
background-color: var(--art-widget-background);