Revert "refactor: streamline LoraCard event handling and implement virtual scrolling for improved performance"

This reverts commit 5dd8d905fa.
This commit is contained in:
Will Miao
2025-05-11 18:50:19 +08:00
parent d516f22159
commit ce7e422169
6 changed files with 195 additions and 570 deletions

View File

@@ -70,6 +70,16 @@ export async function replacePreview(filePath) {
return replaceModelPreview(filePath, 'lora');
}
export function appendLoraCards(loras) {
const grid = document.getElementById('loraGrid');
const sentinel = document.getElementById('scroll-sentinel');
loras.forEach(lora => {
const card = createLoraCard(lora);
grid.appendChild(card);
});
}
export async function resetAndReload(updateFolders = false) {
return baseResetAndReload({
updateFolders,