mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-25 02:34:26 +08:00
[✨ 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user