[ Feat / 🛠️ Fix] Auto hide desktopAssistant & Fix #26

1. [/] 修改了 Header Icon 的隐藏方式, 尝试修复 #26
2. [+] 现在可以隐藏管家助手 (桌面右下角小窗) 了
3. [⇡] Bump version to v0.1.1-beta
This commit is contained in:
Minoricew
2025-06-20 00:45:11 +08:00
parent 807ac913da
commit b8f27d9f7c
11 changed files with 148 additions and 9 deletions

View File

@@ -7,7 +7,7 @@
transition: opacity 0.25s;
}
.aura-header-icon.aura-header-icon-hidden {
#root.aura-header-icon-hidden .aura-header-icon {
display: none;
}

View File

@@ -10,9 +10,11 @@ global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon = {
let clickTimeout = null;
const onMounted = () => {
if (!global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod.showEntryIcon) {
const iconEl = document.getElementsByClassName("aura-header-icon")[0];
iconEl.classList.add("aura-header-icon-hidden");
if (
!global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod.showEntryIcon
) {
const rootEl = document.getElementById("root");
rootEl.classList.add("aura-header-icon-hidden");
}
if (