fix(web): prevent narrow session tooltips#1114
Merged
Merged
Conversation
There was a problem hiding this comment.
Findings
- No findings.
Summary
- Review mode: initial
- Reviewed the full latest diff for
web/src/components/HoverTooltip.tsxandweb/src/components/HoverTooltip.test.tsx; no high-confidence correctness, security, regression, data loss, performance, or maintainability issues found in the added/modified lines. - Residual risk: the new regression is class-level only; real browser layout behavior for CJK tooltip copy is not exercised by this review.
Testing
- Not run (automation)
HAPI Bot
veniai
pushed a commit
to veniai/hapi
that referenced
this pull request
Jul 25, 2026
(cherry picked from commit ee5b023)
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.
Summary
14remmaximum so detailed attention and schedule tooltips still wrapProblem
Session attention indicators use an 8px dot as the containing block for an absolutely positioned tooltip. Non-row tooltips had only a maximum width, so their auto width could collapse to the narrow trigger. CJK copy such as
有新活动then wrapped one character per line and appeared vertical.Fix
Add Tailwind's
w-maxto non-row tooltip panels while keepingmax-w-[14rem]. Short labels now use their max-content width, while longer rich tooltip content remains bounded and wraps normally. Row-spanning tooltips keep their existing sizing behavior.Related: #940, #941
Test plan
bun typecheckbun run test:web(158 files, 1298 tests)w-maxandmax-w-[14rem]有新活动renders horizontallyAI disclosure
AI-assisted implementation and PR drafting: OpenAI Codex (
gpt-5.6-sol).