chore: 调整样式细节并移除节假日功能
- 恢复 aplayer 初始变换为 translateY(0) 和 translateX(0),并自动触发点击以初始化状态 - 为 aplayer 列表项添加字体大小 12px 样式 - 简化 homeSide 组件模板格式,统一代码风格 - 移除节假日获取与显示相关逻辑(getHoli 函数及对应模板)
This commit is contained in:
@@ -58,8 +58,8 @@ function setupMiniswitcher() {
|
||||
|
||||
let expanded = false;
|
||||
app.style.display = "block";
|
||||
app.style.transform = "translateY(50px)";
|
||||
apic.style.transform = "translateX(-66px)";
|
||||
app.style.transform = "translateY(0)";
|
||||
apic.style.transform = "translateX(0)";
|
||||
|
||||
onClickMiniswitcher = () => {
|
||||
if (expanded) {
|
||||
@@ -76,6 +76,7 @@ function setupMiniswitcher() {
|
||||
}
|
||||
};
|
||||
miniswitcherEl.addEventListener("click", onClickMiniswitcher);
|
||||
miniswitcherEl?.click()
|
||||
}
|
||||
|
||||
/** 阻止歌单列表滚轮事件冒泡,避免联动外层滚动 */
|
||||
@@ -149,6 +150,7 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
:deep(.aplayer-list-light) {
|
||||
font-size: 12px !important;
|
||||
background: inherit;
|
||||
color: @orange;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user