Repository navigation
feat(carousel): photo slides fill their slide, and with --cc-bleed / --cc-bleed-start the pages line up with the column - #503
Conversation
…ling the slide at one shape (--cc-ratio) with no panel
…sel instead of leaving a sliver of the slide before it
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
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.
gpt-6.2-sol(high) | 𝕏
…column's start too, resting lined up with it
There was a problem hiding this comment.
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.
gpt-6.2-sol(high) | 𝕏
Latest result Pull request merged. Final answersSession Pull request merged. 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. 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. |
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-motion
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-social
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
ℹ️ 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.
gpt-6.2-sol(high) | 𝕏
There was a problem hiding this comment.
✅ 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.
gpt-6.2-sol(high) | 𝕏

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(default4 / 3) sets that shape.With
--cc-bleed, the last page lines up with the carouselThe 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.
scroll-padding-inlinemakes snapping stop at the same places.--cc-bleed-startlets the slides scroll past the column's startOn the start side the slides were always cut at the column's edge while scrolling.
--cc-bleed-startdoes for the column's start what--cc-bleeddoes 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-bleedalone and with--cc-bleed-starttoo, 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