mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 14:42:11 -03:00
style: Update filter indicator and button styles for improved UI consistency
feat: Add pulse animation to filter indicators in Lora and recipe management refactor: Change filter-active button to a div for better semantic structure
This commit is contained in:
@@ -117,6 +117,13 @@ class LoraPageManager {
|
||||
if (clearBtn) {
|
||||
clearBtn.addEventListener('click', this.clearCustomFilter);
|
||||
}
|
||||
|
||||
// Add pulse animation
|
||||
const filterElement = indicator.querySelector('.filter-active');
|
||||
if (filterElement) {
|
||||
filterElement.classList.add('animate');
|
||||
setTimeout(() => filterElement.classList.remove('animate'), 600);
|
||||
}
|
||||
}
|
||||
|
||||
// If we're viewing a specific LoRA detail, set up to open the modal
|
||||
|
||||
@@ -124,10 +124,10 @@ class RecipeManager {
|
||||
indicator.classList.remove('hidden');
|
||||
|
||||
// Add pulse animation
|
||||
const button = indicator.querySelector('button');
|
||||
if (button) {
|
||||
button.classList.add('animate');
|
||||
setTimeout(() => button.classList.remove('animate'), 600);
|
||||
const filterElement = indicator.querySelector('.filter-active');
|
||||
if (filterElement) {
|
||||
filterElement.classList.add('animate');
|
||||
setTimeout(() => filterElement.classList.remove('animate'), 600);
|
||||
}
|
||||
|
||||
// Add click handler for clear filter button
|
||||
|
||||
Reference in New Issue
Block a user