Repository navigation
Page through up to ten app screenshots and enlarge them in place - #514
Merged
Merged
Conversation
An app's page now shows up to ten screenshots instead of three, so an app can show its desktop, mobile and dark views. The row pages with arrow buttons instead of a scrollbar, and a screenshot opens in a lightbox on the same page instead of a new tab: arrow keys, buttons or a swipe move between pictures, Escape or a click beside the picture closes it.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 5ea2fd6 | Nov 30 2026, 12:26 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
An app's page shows at most three screenshots, which is too few to show an app on desktop, on a phone and in dark mode. The row of screenshots scrolls with a visible horizontal scrollbar, and clicking a screenshot opens the raw image in a new tab, so the reader leaves the app's page.
Changes
/screenshots/1to/screenshots/10among an app's static assets. The contract, the page listing, the API route, its OpenAPI description and the hint for app managers follow the new limit.ScreenshotGallerycomponent;AppAboutpasses it the image URLs.Public documentation of the screenshot convention is in #512, which will name the new limit.
Screenshots
Desktop, light, before and after: the scrollbar gives way to an arrow on the side with more screenshots.
Desktop, dark, before and after:
Phone, before and after:
The lightbox on a desktop in light and dark, and on a phone:
Verification
app-screenshots.test.tscovers slot 10 and rejects slot 11; the platform integration test now expects 400 for slot 11 instead of 4. The integration suite was not run locally; CI runs it.svelte-checkreports no errors in the changed files (the remaining errors come from the unbuilt@platform/app-runtimepackage in a fresh checkout). Oxlint and Oxfmt pass on the changed files.translate-y-px) overrode a transform-based centering and made the arrow jump; arrows are now centered without a transform and opaque in dark mode.