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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
c2ae2ae4
Commit
c2ae2ae4
authored
Aug 25, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ERGO] Chevron for lefthanded fixed
parent
bd54045a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
Node.purs
src/Gargantext/Components/Forest/Tree/Node.purs
+14
-9
Tools.purs
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
+1
-1
No files found.
src/Gargantext/Components/Forest/Tree/Node.purs
View file @
c2ae2ae4
...
@@ -67,14 +67,17 @@ nodeMainSpan p@{ dispatch, folderOpen, frontends, handed, session } = R.createEl
...
@@ -67,14 +67,17 @@ nodeMainSpan p@{ dispatch, folderOpen, frontends, handed, session } = R.createEl
pure $ H.span (dropProps droppedFile isDragOver)
pure $ H.span (dropProps droppedFile isDragOver)
$ ordering
$ ordering
[
chevronIcon
nodeType folderOpen
[
folderIcon
nodeType folderOpen
,
folderIcon
nodeType folderOpen
,
chevronIcon handed
nodeType folderOpen
, nodeLink { frontends
, nodeLink { frontends
, id
, id
, isSelected: mCurrentRoute == Routes.nodeTypeAppRoute nodeType (sessionId session) id
, isSelected: mCurrentRoute
, name: name' props
== Routes.nodeTypeAppRoute
, nodeType
nodeType
, session }
(sessionId session) id
, name: name' props
, nodeType
, session }
, fileTypeView { dispatch, droppedFile, id, isDragOver, nodeType }
, fileTypeView { dispatch, droppedFile, id, isDragOver, nodeType }
, H.div {} (map (\t -> asyncProgressBar { asyncTask: t
, H.div {} (map (\t -> asyncProgressBar { asyncTask: t
...
@@ -117,14 +120,16 @@ nodeMainSpan p@{ dispatch, folderOpen, frontends, handed, session } = R.createEl
...
@@ -117,14 +120,16 @@ nodeMainSpan p@{ dispatch, folderOpen, frontends, handed, session } = R.createEl
then show session
then show session
else name
else name
chevronIcon nodeType folderOpen'@(open /\ _) =
chevronIcon
handed'
nodeType folderOpen'@(open /\ _) =
H.a { className: "chevron-icon"
H.a { className: "chevron-icon"
, onClick: R2.effToggler folderOpen'
, onClick: R2.effToggler folderOpen'
}
}
[ H.i {
[ H.i {
className: if open
className: if open
then "fa fa-chevron-down"
then "fa fa-chevron-down"
else "fa fa-chevron-right"
else if handed' == GT.RightHanded
then "fa fa-chevron-right"
else "fa fa-chevron-left"
} [] ]
} [] ]
folderIcon nodeType folderOpen'@(open /\ _) =
folderIcon nodeType folderOpen'@(open /\ _) =
...
...
src/Gargantext/Components/Forest/Tree/Node/Tools.purs
View file @
c2ae2ae4
...
@@ -323,7 +323,7 @@ nodeTextCpt = R.hooksComponent "G.C.F.T.N.T.nodeText" cpt
...
@@ -323,7 +323,7 @@ nodeTextCpt = R.hooksComponent "G.C.F.T.N.T.nodeText" cpt
]
]
]
]
cpt {isSelected: false, name} _ = do
cpt {isSelected: false, name} _ = do
pure $ H.text (name15 name
<> " "
)
pure $ H.text (name15 name)
name len n = if S.length n < len then
name len n = if S.length n < len then
n
n
...
...
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