Skip to content

Add next/prev pager to video layout#1221

Merged
maiertech merged 3 commits intomainfrom
copilot/add-next-prev-pager-to-video-layout
Mar 30, 2026
Merged

Add next/prev pager to video layout#1221
maiertech merged 3 commits intomainfrom
copilot/add-next-prev-pager-to-video-layout

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

Video pages lacked the next/prev Pager navigation that notes pages already have.

Changes

  • src/routes/videos/+layout.server.ts: Switch from find to findIndex to derive prev/next from the sorted videos array, then expose both in the load return value.
  • src/routes/videos/+layout.svelte: Import Pager and render it after {@render children()}, replacing the decorative ◆ ◆ ◆ separator (the Pager component provides its own border-t visual break).

Copilot AI linked an issue Mar 30, 2026 that may be closed by this pull request
@railway-app
Copy link
Copy Markdown

railway-app bot commented Mar 30, 2026

🚅 Deployed to the website-pr-1221 environment in maiertech

Service Status Web Updated (UTC)
website ✅ Success (View Logs) Web Mar 30, 2026 at 10:32 pm

@railway-app railway-app bot temporarily deployed to maiertech / website-pr-1221 March 30, 2026 21:29 Destroyed
@railway-app railway-app bot temporarily deployed to maiertech / website-pr-1221 March 30, 2026 21:32 Destroyed
Copilot AI changed the title [WIP] Add next/prev pager to video layout Add next/prev pager to video layout Mar 30, 2026
Copilot AI requested a review from maiertech March 30, 2026 21:33
@maiertech maiertech force-pushed the copilot/add-next-prev-pager-to-video-layout branch from c7446cd to ef461cd Compare March 30, 2026 22:30
@railway-app railway-app bot temporarily deployed to maiertech / website-pr-1221 March 30, 2026 22:30 Destroyed
@maiertech maiertech marked this pull request as ready for review March 30, 2026 22:32
@maiertech maiertech merged commit 7a4fcff into main Mar 30, 2026
2 checks passed
@maiertech maiertech deleted the copilot/add-next-prev-pager-to-video-layout branch March 30, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add next/prev pager to video layout

2 participants