chore(content): scroll long twoslash lines instead of overflowing the code block - #1980
Merged
dinwwwh merged 1 commit intoSep 4, 2026
Conversation
… code block Blume keeps twoslash blocks overflow: visible so absolutely positioned hover popups can escape them, and only wraps long lines below 640px, so on wider screens long comment lines ran past the code frame. Popups are now fixed-positioned at every width (previously only on mobile) and placed by the client script, so twoslash code can scroll horizontally like every other block. Two completion examples gain spacer lines so their lists stay inside the new scroller.
Contributor
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
More templates
@orpc/ai-sdk
@orpc/arktype
@orpc/bun
@orpc/client
@orpc/cloudflare
@orpc/contract
@orpc/experimental-effect
@orpc/evlog
@orpc/hibernation
@orpc/json-schema
@orpc/experimental-msw
@orpc/nest
@orpc/next
@orpc/node
@orpc/openapi
@orpc/opentelemetry
@orpc/pinia-colada
@orpc/pino
@orpc/publisher
@orpc/ratelimit
@orpc/server
@orpc/shared
@orpc/swr
@orpc/tanstack-query
@orpc/trpc
@orpc/valibot
@orpc/zod
commit: |
Contributor
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.

Long lines in twoslash code blocks ran past the code frame on desktop (see the Pino integration page, where the option comments spilled out of the block). Twoslash code now scrolls horizontally inside its frame like every other block, at every viewport width, and hover popups keep working on top of the scroller.
Fixes
overflow: visibleso its absolutely positioned popups can escape, and only wraps lines below 640px; the popups are nowposition: fixedat every width (previously only on mobile), so the inner code element can be the scroller.twoslash-mobile.tsis renamed totwoslash-popups.tssince it now runs everywhere; the desktop-only CSS placement,::beforebridge, and flip rules are gone.Testing
pnpm eslintclean on the changed files.