mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
Fix
This commit is contained in:
@@ -417,4 +417,22 @@ body.modal-open {
|
||||
gap: var(--space-1);
|
||||
align-items: flex-end; /* 将图标靠下对齐 */
|
||||
align-self: flex-end; /* 将整个actions容器靠下对齐 */
|
||||
}
|
||||
|
||||
.model-link {
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
.model-link a {
|
||||
color: #34b4eb;
|
||||
text-decoration: none;
|
||||
font-size: 1.3em;
|
||||
opacity: 0.9;
|
||||
transition: opacity 0.2s;
|
||||
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.model-link a:hover {
|
||||
opacity: 1;
|
||||
text-decoration: underline;
|
||||
}
|
||||
@@ -178,6 +178,9 @@ function showModal(lora) {
|
||||
${lora.images.map(img => img.type === 'video' ? `<video controls autoplay muted loop><source src="${img.url}" type="video/mp4">Your browser does not support the video tag.</video>` : `<img src="${img.url}" alt="Preview">`).join('')}
|
||||
</div>
|
||||
<div class="description">About this version: ${lora.description ? lora.description : 'N/A'}</div>
|
||||
<div class="model-link">
|
||||
<a href="https://civitai.com/models/${lora.modelId}?modelVersionId=${lora.id}" target="_blank">more details on CivitAI</a>
|
||||
</div>
|
||||
<button class="close" onclick="closeModal()">×</button>
|
||||
</div>
|
||||
`;
|
||||
@@ -268,14 +271,14 @@ function toggleFolder(element) {
|
||||
|
||||
// 主题切换
|
||||
function toggleTheme() {
|
||||
const theme = document.body.dataset.theme || 'light';
|
||||
const theme = document.body.dataset.theme || 'dark';
|
||||
document.body.dataset.theme = theme === 'light' ? 'dark' : 'light';
|
||||
localStorage.setItem('theme', document.body.dataset.theme);
|
||||
}
|
||||
|
||||
// 初始化主题
|
||||
function initTheme() {
|
||||
const savedTheme = localStorage.getItem('theme') || 'light';
|
||||
const savedTheme = localStorage.getItem('theme') || 'dark';
|
||||
document.body.dataset.theme = savedTheme;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user