fix: show full value on truncated text (hover tooltips) - #78
Open
marekdano wants to merge 2 commits into
Open
Conversation
Signed-off-by: Marek Dano <mk.dano@gmail.com>
Signed-off-by: Marek Dano <mk.dano@gmail.com>
marekdano
force-pushed
the
73-show-truncate-values-in-tooltip
branch
from
August 24, 2026 16:17
4ff5fe7 to
315f3be
Compare
marekdano
requested review from
a-effort,
gcgoncalves and
vishu-bh
and removed request for
a-effort and
vishu-bh
August 24, 2026 16:46
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.
Fixes #73
Summary
TruncatedMiddleTextfor values shortened viatruncateMiddle(copy-value, tool/resource/prompt IDs, URIs, virtual server source tabs): shows a hover tooltip with the full value when it's actually truncated, and setsaria-labelto the full value since the shortened string is all that reaches the DOM.TruncatedTextfor CSS-truncated (.truncate) text: aResizeObservercomparesscrollWidth/clientWidthso the tooltip only appears when the text is actually clipped at its current rendered width. The full text stays in the DOM either way, so it's available to screen readers regardless of visual truncation..truncateCSS wrapping an alreadytruncateMiddle'd string) in the Tools/Resources/Prompts ID columns.titleattributes with the new tooltip where present — a nativetitledoesn't satisfy WCAG 1.4.13 (hoverable/dismissible/persistent).TooltipContent(src/components/ui/tooltip.tsx) to usebreak-allinstead of no wrapping: long unbroken strings (filenames, URIs, hashes) were overflowing past the tooltip bubble'smax-w-xsbound instead of wrapping onto additional lines.Test plan
npx vitest run— full suite passes (187 files / 3123 tests)npx tsc --noEmit— cleannpx eslinton all changed files — cleannpm run build— production build succeeds