Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Frontend V2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Frontend V2
Merge requests
!158
feat: use floating ui for node link tooltips
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
feat: use floating ui for node link tooltips
feat/nodelink-tooltips
into
main
Overview
2
Commits
13
Pipelines
7
Changes
1
Merged
Dennis Collaris
requested to merge
feat/nodelink-tooltips
into
main
9 months ago
Overview
2
Commits
13
Pipelines
7
Changes
1
Expand
Additional features:
Shift-click for multi select
Click anywhere in the stage to deselect
Panning and zooming does not deselect
Preview
Screen_Recording_2024-06-26_at_17.55.05
0
0
Merge request reports
Viewing commit
9c40e341
Show latest version
1 file
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
9c40e341
fix: ensure tooltip trigger element is absolutely positioned to not affect the scroll box
· 9c40e341
Dennis Collaris
authored
9 months ago
libs/shared/lib/components/tooltip/Tooltip.tsx
+
5
−
4
Options
@@ -119,11 +119,12 @@ export const TooltipTrigger = React.forwardRef<HTMLElement, React.HTMLProps<HTML
React
.
useEffect
(()
=>
{
if
(
x
==
null
)
return
;
if
(
x
&&
y
)
{
context
.
data
.
refs
.
reference
.
current
.
style
.
transform
=
`translate(
${
x
}
px,
${
y
}
px)`
;
if
(
x
&&
y
&&
context
.
data
.
refs
.
reference
.
current
!=
null
)
{
const
element
=
context
.
data
.
refs
.
reference
.
current
as
HTMLElement
;
element
.
style
.
position
=
'
absolute
'
;
element
.
style
.
transform
=
`translate(
${
x
}
px,
${
y
}
px)`
;
context
.
data
.
update
();
}
context
.
data
.
update
();
},
[
x
,
y
]);
// `asChild` allows the user to pass any element as the anchor
Loading