From 3671b90b817dd899391095b032acf4900297e463 Mon Sep 17 00:00:00 2001 From: mace Date: Sun, 14 Jun 2026 17:04:37 +0200 Subject: [PATCH] Fix fontend tests, move next button in list view --- vue/src/components/RssFeeds.vue | 74 ++++++++++++++----- vue/src/components/__tests__/AppNav.spec.js | 9 +++ vue/src/components/__tests__/RssFeeds.spec.js | 8 +- 3 files changed, 67 insertions(+), 24 deletions(-) diff --git a/vue/src/components/RssFeeds.vue b/vue/src/components/RssFeeds.vue index 1a20dca..0314883 100644 --- a/vue/src/components/RssFeeds.vue +++ b/vue/src/components/RssFeeds.vue @@ -41,7 +41,7 @@ function scrollToNextArticle() { const SMALL_IMAGE_THRESHOLD = 200 function markSmallImages() { - document.querySelectorAll('.article-feature__content--readable img').forEach(img => { + document.querySelectorAll('.article-feature__content--readable img, .feed-content--readable img').forEach(img => { const checkSize = () => { if (img.naturalWidth && img.naturalWidth <= SMALL_IMAGE_THRESHOLD) { img.classList.add('article-feature__image--small') @@ -60,6 +60,12 @@ watch(() => feeds.value[currentIndex.value]?.content, async () => { markSmallImages() }) +async function loadReadable(feed, index) { + await getReadable(feed, index) + await nextTick() + markSmallImages() +} + async function shareUrl(url) { if (navigator.share) { await navigator.share({ url }) @@ -86,7 +92,6 @@ onMounted(async () => {
RSS Reader ({{ unreadCount }}) -

{{ feed.feedTitle }}

-

{{ feed.title }}

+

{{ feed.title }}

{{ feed.timestamp }}

-

+

+
@@ -128,7 +140,7 @@ onMounted(async () => {