refactor: remove legacy card components and update imports to use shared ModelCard component

This commit is contained in:
Will Miao
2025-07-25 22:00:38 +08:00
parent 1a3751acfa
commit 0d9003dea4
11 changed files with 16 additions and 62 deletions

View File

@@ -48,7 +48,7 @@ function handleModelCardEvent_internal(event, modelType) {
if (event.target.closest('.fa-star')) {
event.stopPropagation();
toggleFavorite(card, modelType);
toggleFavorite(card);
return;
}
@@ -131,7 +131,7 @@ function showBlurredContent(card) {
}
}
async function toggleFavorite(card, modelType) {
async function toggleFavorite(card) {
const starIcon = card.querySelector('.fa-star');
const isFavorite = starIcon.classList.contains('fas');
const newFavoriteState = !isFavorite;