Anchor trace viewer shortcut helper to the timeline's left edge#2837
Conversation
🦋 Changeset detectedLatest commit: dc71869 The changes in this PR will be included in the next version bump. This PR includes changesets to release 16 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Can't test well on PR previews sadly since runs aren't loading. @karthikscale3 |
Render the shortcut helper inside the timeline column instead of as a pane-root overlay, so it aligns to the timeline's left edge (tracking the divider for free) and sticks to the bottom of the viewport while the pane scrolls. Gate visibility on a container-query width (`@container` on the timeline column + `@min-[420px]`) rather than the viewport `md` breakpoint, so it hides based on the timeline's own width. No SplitPane API change required. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
e8a65da to
1384771
Compare
|
No backport to This commit only touches files under To override, re-run the Backport to stable workflow manually via |
What
Moves the trace viewer keyboard-shortcut helper (
Use J / K to move between spans/Hold Option to see delta between spans) from the center of the pane to the left edge of the timeline — aligned with where the span bars start, not the event list.How
SplitPanenow reports its rendered start-pane width via a new optionalonStartWidthChangecallback.trace-viewerpublishes the timeline's content-left edge (startPx + gutter + timeline padding) as a--trace-timeline-leftCSS variable onpane-root, written imperatively so dragging the divider doesn't re-render the timeline. It's seeded inline for correct first paint and tracks the divider live.left: var(--trace-timeline-left)(dropping the oldleft-1/2 -translate-x-1/2centering).@min-[640px]againstpane-root, marked@container) instead of the viewportmd:breakpoint, so it hides based on the trace viewer's own width — relevant since the viewer can live inside a split/panel.Notes
pane-rootwas alreadyrelative(the helper's containing block), so@containeronly adds inline-size containment; its width is parent-driven (w-full), so no layout change.@workflow/web-shared.🤖 Generated with Claude Code