mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-19 08:52:05 -03:00
fix(sidebar): align restore indicator with sidebar header and add first-use breathing animation (#990)
This commit is contained in:
@@ -1040,7 +1040,15 @@ export class SidebarManager {
|
||||
<span class="sidebar-hidden-indicator-tooltip">${translate('sidebar.showSidebar')}</span>
|
||||
`;
|
||||
|
||||
// Subtle breathing animation on first sight to aid discoverability;
|
||||
// stops permanently after user clicks the restore button once
|
||||
const restoreKey = `${this.pageType}_restoreButtonUsed`;
|
||||
if (!getStorageItem(restoreKey, false)) {
|
||||
indicator.classList.add('breathing');
|
||||
}
|
||||
|
||||
indicator.addEventListener('click', () => {
|
||||
setStorageItem(restoreKey, true);
|
||||
this.toggleHideOnThisPage();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user