mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
Fix
This commit is contained in:
@@ -418,3 +418,21 @@ body.modal-open {
|
|||||||
align-items: flex-end; /* 将图标靠下对齐 */
|
align-items: flex-end; /* 将图标靠下对齐 */
|
||||||
align-self: flex-end; /* 将整个actions容器靠下对齐 */
|
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('')}
|
${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>
|
||||||
<div class="description">About this version: ${lora.description ? lora.description : 'N/A'}</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>
|
<button class="close" onclick="closeModal()">×</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@@ -268,14 +271,14 @@ function toggleFolder(element) {
|
|||||||
|
|
||||||
// 主题切换
|
// 主题切换
|
||||||
function toggleTheme() {
|
function toggleTheme() {
|
||||||
const theme = document.body.dataset.theme || 'light';
|
const theme = document.body.dataset.theme || 'dark';
|
||||||
document.body.dataset.theme = theme === 'light' ? 'dark' : 'light';
|
document.body.dataset.theme = theme === 'light' ? 'dark' : 'light';
|
||||||
localStorage.setItem('theme', document.body.dataset.theme);
|
localStorage.setItem('theme', document.body.dataset.theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化主题
|
// 初始化主题
|
||||||
function initTheme() {
|
function initTheme() {
|
||||||
const savedTheme = localStorage.getItem('theme') || 'light';
|
const savedTheme = localStorage.getItem('theme') || 'dark';
|
||||||
document.body.dataset.theme = savedTheme;
|
document.body.dataset.theme = savedTheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user