Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
19595b16
Commit
19595b16
authored
Mar 18, 2021
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[toestand] fix tooltip for tree
parent
1158c26d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Tools.purs
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
+2
-3
ReactTooltip.purs
src/Gargantext/Utils/ReactTooltip.purs
+3
-1
No files found.
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
View file @
19595b16
...
...
@@ -263,9 +263,9 @@ nodeLinkCpt = here.component "nodeLink" cpt
pure $
H.div { className: "node-link"
, on: { click } }
[ H.a { href, data: { for: tooltipId, tip: true } }
[ H.a { href, data: { for: tooltipId
id
, tip: true } }
[ nodeText { handed, isSelected, name } []
, ReactTooltip.reactTooltip {
id: tooltipId id
}
, ReactTooltip.reactTooltip {
effect: "float", id: tooltipId id, type: "dark"
}
[ R2.row
[ H.h4 {className: GT.fldr nodeType true}
[ H.text $ GT.prettyNodeType nodeType ]
...
...
@@ -280,7 +280,6 @@ nodeLinkCpt = here.component "nodeLink" cpt
-- click on closed -> open
-- click on open -> ?
click _ = when (not isSelected) (T.write_ true folderOpen)
tooltipId id = "node-link-" <> show id
href = url frontends $ GT.NodePath (sessionId session) nodeType (Just id)
-- END node link
...
...
src/Gargantext/Utils/ReactTooltip.purs
View file @
19595b16
...
...
@@ -11,7 +11,9 @@ import Gargantext.Prelude
type Props =
(
id :: String
effect :: String
, id :: String
, type :: String
)
foreign import reactTooltipCpt :: R.Component Props
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment