Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const ScreenshotSwiper = ({ screenshots, appName }: ScreenshotSwiperProps) => {
/>
</SwiperSlide>
))}
<SwiperNavigation />
{screenshots.length > 1 && <SwiperNavigation />}
</Swiper>

<Modal
Expand Down
12 changes: 7 additions & 5 deletions app/[locale]/apps/[application]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ const Page = async (props: {
locale as Lang
)

const allImages = [
...(app.bannerImage ? [app.bannerImage] : []),
...app.screenshots,
]

return (
<>
<AppsAppJsonLD locale={locale} app={app} contributors={contributors} />
Expand Down Expand Up @@ -357,13 +362,10 @@ const Page = async (props: {
<p className="text-sm">{getTimeAgo(app.lastUpdated)}</p>
</div>
</div>
{app.screenshots.length > 0 && (
{allImages.length > 0 && (
<div className="flex flex-col gap-4">
<h3 className="text-2xl">{t("page-apps-gallery-title")}</h3>
<ScreenshotSwiper
screenshots={app.screenshots}
appName={app.name}
/>
<ScreenshotSwiper screenshots={allImages} appName={app.name} />
</div>
)}
</div>
Expand Down
Loading