Repository navigation
fix: minimap tooltip transparency and chat text overlap - #26
Merged
Merged
Conversation
- Tooltip opacity raised to fully opaque; opaque backdrop panel with project Tooltip treatment (bg-panel, border, radius-control, shadow-pop) - Tooltips interactive: click to scroll to message, hover highlights - Gap between minimap strip and tooltip panel bridged - Scrollable list panel when tooltips exceed minimap height, with auto-follow via effect + data-node-index query - React hook ordering: all hooks before early return - Chat column maxWidth constrained on narrow viewports so minimap never covers text; MINIMAP_WIDTH shared in lib/chat-layout.ts Fixes ompweb-dev#22, fixes ompweb-dev#23
Contributor
Author
This is not strictly part of the bug fix but it seemed like a reasonable UX expectation. |
Collaborator
|
looking into it |
- Fix overflow panel using node.index as array index for previews/colors (always fell back to recompute, bypassed memoization) - Fix click-to-scroll: use (scrollHeight - clientHeight) instead of scrollHeight - Guard scrollToMinimapRatio against NaN when viewportRatio ~=1 (1 - ratio < 1e-6) - Capture fresh minimap rect on drag instead of stale mousedown rect - Make minimapHeightPx reactive via ResizeObserver/state instead of ref read during render (was stale 600px until next hover)
Collaborator
|
@rickythefox fixed some issues and some overflows, thanks |
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
Fixes #22 (minimap too transparent) and #23 (minimap covers chat text).
Changes
Issue #22 - Minimap tooltip transparency
var(--bg-panel),var(--border),var(--radius-control),var(--shadow-pop))data-node-indexquery (avoids inline callback ref churn)if (!visible) return nullearly returnIssue #23 - Minimap covers chat text
MINIMAP_WIDTHshared vialib/chat-layout.tsmaxWidth: min(960px, calc(100% - Xpx))where X is derived from bothMINIMAP_WIDTHandCHAT_COLUMN_PADDINGso the formula stays correct if either changesFiles changed
components/ChatMinimap.tsx- tooltip interactivity, overflow handling, shared constant importcomponents/ChatWindow.tsx- desktop column max-width constraintlib/chat-layout.ts- sharedMINIMAP_WIDTHconstantVerification
project-registry.test.mjsandworktree.test.mjsdue to macOS/private/varvs/varsymlink canonicalization - unrelated to this change