Skip to content

feat(carousel): photo slides fill their slide, and with --cc-bleed / --cc-bleed-start the pages line up with the column - #503

Merged
vite-hub[bot] merged 7 commits into
mainfrom
fix/carousel-bleed-last-page
Nov 28, 2026
Merged

vite-hub[bot] merged 7 commits into
mainfrom
fix/carousel-bleed-last-page

Conversation

@onmax

@onmax onmax commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Three carousel fixes for wide, photo-heavy carousels, such as a doc's photo gallery that runs past the text column. This takes in #502.

A slide that is one image is the photo

A carousel slide that is one image used to sit on the grey slide panel, with padding around it, so a photo carousel read as photos in boxes. Now such a slide is the photo itself: no panel, and the photo fills the slide edge to edge at one shape, cropped to fit, so photos of different shapes still line up.

  • --cc-ratio (default 4 / 3) sets that shape.
  • Slides with text or code keep their panel.
  • Zooming a photo still shows it whole, since the zoomed copy sits outside the grid.
Before After
Photos on grey panels Photos filling their slides

With --cc-bleed, the last page lines up with the carousel

The track reaches past the carousel's column, but it stopped scrolling once the last slide touched the track's far edge. So at the end a sliver of the slide before the last page showed at the column's start, cut off there, and the last slide ran past the column's end.

  • An empty box after the last slide, as wide as the overhang, lets the track scroll on, and scroll-padding-inline makes snapping stop at the same places.
  • The script counts a page as what fits in the column, not in the wider track, and measures slide starts from the column's start, so the arrows, End and the counter agree with a hand scroll.

--cc-bleed-start lets the slides scroll past the column's start

On the start side the slides were always cut at the column's edge while scrolling. --cc-bleed-start does for the column's start what --cc-bleed does for its end: the slides scroll out past it and come to rest lined up with the column, so the slides you pass slide off the page. It's a length; a percentage reads as 0, because the run reads it as a number to line the grid up with the column. A carousel inside a slide resets both bleeds.

The e2e tests page to the end by arrow and by scrolling, in both directions, with --cc-bleed alone and with --cc-bleed-start too, and check where the first and last pages rest and what shows before them. Without either variable nothing changes. Drop has run this as a patch on its docs.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-28T14:43:44.882076Z
We couldn’t complete this review. Comment @codex review to try again.
fcb4712 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

With 160px of bleed, Next does nothing in an RTL carousel, and End can announce the last page while it is still clipped. Reproduced in Chromium and Firefox.

Approach: Extending the scrollable track by the bleed is the right fix, but the script must keep the page width separate from the track’s coordinate system.

Reviewed changes

  • Track and snapping: A trailing spacer extends the scroll range, and inline-end scroll padding aligns the final snap on narrow carousels.
  • Paging: The script counts full slides against the column width and clamps the target against the track’s scroll range.
  • Coverage: All 35 existing and added carousel browser tests passed; additional probes reproduced the RTL regression and verified the narrow snap behavior.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

Comment thread packages/carousel/src/client.ts Resolved
Comment thread e2e/carousel.e2e.ts Resolved
…column's start too, resting lined up with it
@onmax onmax changed the title fix(carousel): with --cc-bleed, the last page lines up with the carousel fix(carousel): with --cc-bleed the last page lines up with the carousel, and --cc-bleed-start lets slides scroll past its start Nov 28, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Start bleed can make Next skip a page in a padded carousel, and a nested carousel can inherit bleed when its own percentage should resolve to zero. Both reproduced in Chromium and Firefox.

Approach: Extending the run on both sides and insetting the snapport preserves the column alignment, but the script and the CSS must agree on where that column starts.

Reviewed changes

  • Added start bleed. Widened the track at inline start, inset the grid and snapport, and reset both bleed settings on nested carousels.
  • Updated paging coordinates. Kept the RTL inset in track coordinates and subtracted the leading overhang from slide positions.
  • Expanded alignment coverage. Added LTR and RTL desktop checks with and without start bleed. All 37 carousel browser tests passed.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

Comment thread packages/carousel/src/client.ts Resolved
Comment thread packages/carousel/src/styles.ts Resolved
@onmax onmax changed the title fix(carousel): with --cc-bleed the last page lines up with the carousel, and --cc-bleed-start lets slides scroll past its start feat(carousel): photo slides fill their slide, and with --cc-bleed / --cc-bleed-start the pages line up with the column Nov 28, 2026
@onmax
onmax changed the base branch from fix/carousel-photo-fill to main November 28, 2026 15:29
@vite-hub

vite-hub Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Waiting 2026-11-28T19:16:12.292Z 5m 30s
View session Last seen running 2026-11-28T19:07:04.479Z 0s
View session Completed 2026-11-28T18:47:34.473Z 8m 52s
View session Last seen running 2026-11-28T15:34:40.371Z 1s
View session Cancelled 2026-11-28T15:30:52.803Z 1m 49s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

View session

PR #503 is ready to merge. The current HEAD addresses all five resolved review findings, and all hosted checks passed, including browser E2E. All 14 carousel tests passed locally, and lint reported warnings only. No new commit was needed.

Session

Pushed 9b0b7d1 to fix the Doctor failure and align carousel paging with the column’s content edge. The geometry probe reproduced the old offset and verified the fix for percentage and calc() snap padding in LTR and RTL. Doctor and all 14 focused tests passed, and the review thread is resolved. The sandbox blocked local Playwright, so browser verification awaits hosted CI.

View session

Pushed 9b0b7d1 to fix the Doctor failure and align carousel paging with the column’s content edge. The geometry probe reproduced the old offset and verified the fix for percentage and calc() snap padding in LTR and RTL. Doctor and all 14 focused tests passed, and the review thread is resolved. The sandbox blocked local Playwright, so browser verification awaits hosted CI.

@pkg-pr-new

pkg-pr-new Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@503

comark-badge

pnpm add https://pkg.pr.new/comark-badge@503

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@503

comark-cards

pnpm add https://pkg.pr.new/comark-cards@503

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@503

comark-cast

pnpm add https://pkg.pr.new/comark-cast@503

comark-charts

pnpm add https://pkg.pr.new/comark-charts@503

comark-chat

pnpm add https://pkg.pr.new/comark-chat@503

comark-chips

pnpm add https://pkg.pr.new/comark-chips@503

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@503

comark-code

pnpm add https://pkg.pr.new/comark-code@503

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@503

comark-colors

pnpm add https://pkg.pr.new/comark-colors@503

comark-comments

pnpm add https://pkg.pr.new/comark-comments@503

comark-critic

pnpm add https://pkg.pr.new/comark-critic@503

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@503

comark-details

pnpm add https://pkg.pr.new/comark-details@503

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@503

comark-diff

pnpm add https://pkg.pr.new/comark-diff@503

comark-embed

pnpm add https://pkg.pr.new/comark-embed@503

comark-fields

pnpm add https://pkg.pr.new/comark-fields@503

comark-figure

pnpm add https://pkg.pr.new/comark-figure@503

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@503

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@503

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@503

comark-github

pnpm add https://pkg.pr.new/comark-github@503

comark-icon

pnpm add https://pkg.pr.new/comark-icon@503

comark-include

pnpm add https://pkg.pr.new/comark-include@503

comark-keys

pnpm add https://pkg.pr.new/comark-keys@503

comark-links

pnpm add https://pkg.pr.new/comark-links@503

comark-linter

pnpm add https://pkg.pr.new/comark-linter@503

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@503

comark-mark

pnpm add https://pkg.pr.new/comark-mark@503

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@503

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@503

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@503

comark-media

pnpm add https://pkg.pr.new/comark-media@503

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@503

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@503

comark-motion

pnpm add https://pkg.pr.new/comark-motion@503

comark-outline

pnpm add https://pkg.pr.new/comark-outline@503

comark-properties

pnpm add https://pkg.pr.new/comark-properties@503

comark-qr

pnpm add https://pkg.pr.new/comark-qr@503

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@503

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@503

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@503

comark-social

pnpm add https://pkg.pr.new/comark-social@503

comark-sources

pnpm add https://pkg.pr.new/comark-sources@503

comark-steps

pnpm add https://pkg.pr.new/comark-steps@503

comark-table

pnpm add https://pkg.pr.new/comark-table@503

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@503

comark-tests

pnpm add https://pkg.pr.new/comark-tests@503

comark-time

pnpm add https://pkg.pr.new/comark-time@503

comark-ui

pnpm add https://pkg.pr.new/comark-ui@503

comark-xref

pnpm add https://pkg.pr.new/comark-xref@503

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@503

commit: 9b0b7d1

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No P0 or P1 findings remain; one edge-case regression is noted inline.

Reviewed changes since f9392988. All 41 carousel browser tests and 14 parse/render tests passed.

  • Corrected padded-column paging. Counted slides against the column’s content width and used the track’s start scroll padding to calculate stops.
  • Isolated nested start bleed. Made an invalid percentage resolve to zero locally instead of inheriting the outer run’s bleed.
  • Added native final-snap coverage. Scrolled from the first slide in a 320px carousel and checked that the last slide aligned with the column’s end.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol(high) | 𝕏

Comment thread packages/carousel/src/client.ts Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found; no P0 or P1 findings remain.

Approach: Measuring the column’s content edge directly keeps paging independent of how the browser serializes scroll padding.

Reviewed changes in 9b0b7d1c since the last reviewed update. All 45 carousel browser tests and 14 parse/render tests passed, and the six focused regression cases also passed in Firefox.

  • Measured paging from the content edge. Accounted for column borders and padding while keeping scroll offsets in track coordinates.
  • Added regression coverage. Verified forward and backward paging with equivalent percentage and calc() snap padding in LTR and RTL.

Pullfrog  | View workflow run | Using gpt-6.2-sol(high) | 𝕏

@vite-hub
vite-hub Bot merged commit f7945c8 into main Nov 28, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the fix/carousel-bleed-last-page branch November 28, 2026 19:23
@github-actions github-actions Bot mentioned this pull request Nov 28, 2026
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.

1 participant