Refactor recipe card styles and update HTML structure

- Migrated CSS styles from recipe-card.css to card.css for better organization.
- Updated recipe card class names in HTML to align with new styling conventions.
- Enhanced card layout with additional flex properties for improved responsiveness.
- Adjusted infinite scroll debounce timing for better performance.
This commit is contained in:
Will Miao
2025-03-20 21:42:17 +08:00
parent 5cfae7198d
commit 34078d8a60
5 changed files with 60 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ class RecipeCard {
createCardElement() {
const card = document.createElement('div');
card.className = 'recipe-card';
card.className = 'lora-card';
card.dataset.filePath = this.recipe.file_path;
card.dataset.title = this.recipe.title;
card.dataset.created = this.recipe.created_date;