mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
checkpoint
This commit is contained in:
@@ -602,7 +602,6 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
width: calc(100% - 40px); /* Avoid overlap with close button */
|
width: calc(100% - 40px); /* Avoid overlap with close button */
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-bottom: var(--space-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.model-name-content {
|
.model-name-content {
|
||||||
@@ -917,7 +916,6 @@
|
|||||||
/* Updated Model Tags styles - improved visibility in light theme */
|
/* Updated Model Tags styles - improved visibility in light theme */
|
||||||
.model-tags-container {
|
.model-tags-container {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-top: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.model-tags-compact {
|
.model-tags-compact {
|
||||||
|
|||||||
@@ -126,24 +126,11 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<!-- Recipe controls - can reuse structure from loras controls -->
|
<!-- Recipe controls - can reuse structure from loras controls -->
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<!-- Recipe tags container - similar to folder tags -->
|
<div class="action-buttons">
|
||||||
<div class="folder-tags-container">
|
<div title="Import recipes" class="control-group">
|
||||||
<div class="recipe-tag-container">
|
<button onclick="importRecipes()"><i class="fas fa-file-import"></i> Import</button>
|
||||||
{% if recipe_tags %}
|
|
||||||
{% for tag in recipe_tags %}
|
|
||||||
<div class="recipe-tag" data-tag="{{ tag }}">{{ tag }}</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% else %}
|
|
||||||
<div class="recipe-tag" data-tag="all">All</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
<button class="toggle-folders-btn" onclick="toggleTagsContainer()" title="Collapse tags">
|
|
||||||
<i class="fas fa-chevron-up"></i>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Search container - similar structure to loras search -->
|
|
||||||
{% include 'components/search_controls.html' %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Recipe grid - similar to lora grid -->
|
<!-- Recipe grid - similar to lora grid -->
|
||||||
@@ -217,53 +204,12 @@
|
|||||||
|
|
||||||
<!-- Recipe page specific scripts -->
|
<!-- Recipe page specific scripts -->
|
||||||
<script>
|
<script>
|
||||||
// Toggle recipe tags container
|
|
||||||
function toggleTagsContainer() {
|
|
||||||
const container = document.querySelector('.recipe-tag-container');
|
|
||||||
const button = document.querySelector('.toggle-folders-btn');
|
|
||||||
|
|
||||||
if (container.style.display === 'none') {
|
|
||||||
container.style.display = 'flex';
|
|
||||||
button.querySelector('i').className = 'fas fa-chevron-up';
|
|
||||||
button.title = 'Collapse tags';
|
|
||||||
} else {
|
|
||||||
container.style.display = 'none';
|
|
||||||
button.querySelector('i').className = 'fas fa-chevron-down';
|
|
||||||
button.title = 'Expand tags';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Refresh recipes
|
// Refresh recipes
|
||||||
function refreshRecipes() {
|
function refreshRecipes() {
|
||||||
// Will be implemented in recipes.js
|
// Will be implemented in recipes.js
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simple utility function to handle theme toggling
|
|
||||||
function toggleTheme() {
|
|
||||||
document.body.classList.toggle('dark-theme');
|
|
||||||
localStorage.setItem('theme', document.body.classList.contains('dark-theme') ? 'dark' : 'light');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Apply saved theme on load
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
|
||||||
const savedTheme = localStorage.getItem('theme');
|
|
||||||
if (savedTheme === 'dark') {
|
|
||||||
document.body.classList.add('dark-theme');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Setup recipe tag filtering
|
|
||||||
document.querySelectorAll('.recipe-tag').forEach(tag => {
|
|
||||||
tag.addEventListener('click', () => {
|
|
||||||
document.querySelectorAll('.recipe-tag').forEach(t => t.classList.remove('active'));
|
|
||||||
tag.classList.add('active');
|
|
||||||
|
|
||||||
// Implement filtering logic here or in recipes.js
|
|
||||||
console.log('Filter by tag:', tag.dataset.tag);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
// Placeholder for recipe filter manager
|
// Placeholder for recipe filter manager
|
||||||
const recipeFilterManager = {
|
const recipeFilterManager = {
|
||||||
toggleFilterPanel() {
|
toggleFilterPanel() {
|
||||||
|
|||||||
Reference in New Issue
Block a user