diff --git a/TODO.md b/TODO.md index 348b559..aa9f575 100644 --- a/TODO.md +++ b/TODO.md @@ -26,7 +26,8 @@ - [ ] Duplicate article detection - Avoid showing same story from multiple sources ## User Experience -- [ ] Dark/light theme toggle +- [x] Dark/light theme toggle +- [x] Infinite scroll / load more functionality for articles - [ ] Customizable article layout - List view, card view, magazine style - [ ] Keyboard shortcuts - Navigate articles without mouse - [ ] Offline reading support - Cache articles for offline access diff --git a/frontend/src/components/NewsFilters.vue b/frontend/src/components/NewsFilters.vue index 505b83f..7f64861 100644 --- a/frontend/src/components/NewsFilters.vue +++ b/frontend/src/components/NewsFilters.vue @@ -290,7 +290,7 @@ const availableCountries = computed(() => { return Array.from(countries).sort(); }); -const articleCount = computed(() => news.articles.length); +const articleCount = computed(() => news.allArticles.length); // Date presets const datePresets: DatePreset[] = [ diff --git a/frontend/src/components/NewsList.vue b/frontend/src/components/NewsList.vue index beb9f01..a471e9a 100644 --- a/frontend/src/components/NewsList.vue +++ b/frontend/src/components/NewsList.vue @@ -44,16 +44,19 @@
+ class="text-sm sm:text-base text-gray-700 dark:text-gray-300 line-clamp-5 leading-relaxed"> {{ article.summary }}
+ - + +- Showing {{ news.articles.length }} articles + +
+ Loading more articles... +
++ No more articles to load +
++ Showing {{ news.articles.length }} of {{ news.allArticles.length }} articles