fix(visimer): mobile layout, touch support, and site analytics (#2866) - #6
Merged
Conversation
The playground kept its desktop two-column grid on phones, clipping the code pane and shrinking the diagram to an unreadable sliver, and the canvas was nearly unusable with touch input. Site: stack the playground panes vertically under 720px with scrollable toolbar chip strips, swap the hint copy for touch wording, wrap long CodeMirror lines, order the Expand/Exit toggle first on mobile (no Esc key on phones), stack the install recipes one per row, tighten every description to two lines at any width, align the hero CTA heights, and drop the feature chip cloud. Package (@visimer/dom): touch-action handling so drag pans instead of scrolling, two-finger pinch zoom about the finger midpoint, a double-tap fallback that opens the label editor on browsers that never synthesize dblclick from taps, and coarse-pointer tap-target sizes for the popover and zoom controls. Changeset included. Analytics: PostHog on the site only, keyed off VITE_POSTHOG_KEY (set in the Vercel project), cookieless, proxied through /ingest via vercel.json so ad blockers keep the events, with custom activation events for visual and code edits. GitOrigin-RevId: 1fdfef43c392b39c6086cbc1e5207656da6de247
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.
Copybara-translated 1 Inkeep OSS change. Rebase-merge this PR so the prepared commit lands directly on public main.