From 17c5d5ae4bf94f50e2086c25b926ee9c008be5b6 Mon Sep 17 00:00:00 2001 From: Stefan Hardegger Date: Thu, 23 Jul 2026 07:35:04 +0200 Subject: [PATCH] show all stories function for series --- frontend/src/app/stories/[id]/detail/page.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/stories/[id]/detail/page.tsx b/frontend/src/app/stories/[id]/detail/page.tsx index 1e2beed..7366785 100644 --- a/frontend/src/app/stories/[id]/detail/page.tsx +++ b/frontend/src/app/stories/[id]/detail/page.tsx @@ -27,6 +27,7 @@ export default function StoryDetailPage() { const [isSendingToAudioCove, setIsSendingToAudioCove] = useState(false); const [audioCovedSuccess, setAudioCovedSuccess] = useState(false); const [isCreatingCollection, setIsCreatingCollection] = useState(false); + const [showAllSeriesStories, setShowAllSeriesStories] = useState(false); useEffect(() => { const loadStoryData = async () => { @@ -315,7 +316,7 @@ export default function StoryDetailPage() {
{seriesStories .filter(s => s.id !== story.id) - .slice(0, 5) + .slice(0, showAllSeriesStories ? undefined : 5) .map((seriesStory) => ( ))} - {seriesStories.length > 6 && ( -

+ {!showAllSeriesStories && seriesStories.length > 6 && ( + )}