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
2bc70b91
Commit
2bc70b91
authored
Jun 26, 2019
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Tree] fix background highlight color, no highlight when filetype dialog closed
parent
edbf10c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
Login.css
dist/styles/Login.css
+1
-1
Tree.purs
src/Gargantext/Components/Tree.purs
+6
-4
No files found.
dist/styles/Login.css
View file @
2bc70b91
...
@@ -205,7 +205,7 @@ text-align: center;
...
@@ -205,7 +205,7 @@ text-align: center;
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.tree
.file-dropped
{
.tree
.file-dropped
{
background-color
:
aliceblue
;
background-color
:
#d8dfe5
;
}
}
#graph-tree
.tree
{
#graph-tree
.tree
{
margin-top
:
27px
;
margin-top
:
27px
;
...
...
src/Gargantext/Components/Tree.purs
View file @
2bc70b91
...
@@ -446,7 +446,7 @@ createNodeView _ _ = R.createElement el {} []
...
@@ -446,7 +446,7 @@ createNodeView _ _ = R.createElement el {} []
--fileTypeView :: (Action -> Effect Unit) -> FTree -> R.Element
--fileTypeView :: (Action -> Effect Unit) -> FTree -> R.Element
fileTypeView d (s@(NTree (LNode {id}) _) /\ _) (Just (DroppedFile {contents, fileType}) /\ setDroppedFile) = R.createElement el {} []
fileTypeView d (s@(NTree (LNode {id}) _) /\ _) (Just (DroppedFile {contents, fileType}) /\ setDroppedFile)
(_ /\ setIsDragOver)
= R.createElement el {} []
where
where
el = R.hooksComponent "FileTypeView" cpt
el = R.hooksComponent "FileTypeView" cpt
cpt props _ = do
cpt props _ = do
...
@@ -468,7 +468,9 @@ fileTypeView d (s@(NTree (LNode {id}) _) /\ _) (Just (DroppedFile {contents, fil
...
@@ -468,7 +468,9 @@ fileTypeView d (s@(NTree (LNode {id}) _) /\ _) (Just (DroppedFile {contents, fil
[ H.h5 {} [H.text "Choose file type"] ]
[ H.h5 {} [H.text "Choose file type"] ]
, H.div {className: "col-md-2"}
, H.div {className: "col-md-2"}
[ H.a {className: "btn text-danger glyphitem glyphicon glyphicon-remove-circle"
[ H.a {className: "btn text-danger glyphitem glyphicon glyphicon-remove-circle"
, onClick: mkEffectFn1 $ \_ -> setDroppedFile $ Nothing
, onClick: mkEffectFn1 $ \_ -> do
setDroppedFile Nothing
setIsDragOver false
, title: "Close"} []
, title: "Close"} []
]
]
]
]
...
@@ -499,7 +501,7 @@ fileTypeView d (s@(NTree (LNode {id}) _) /\ _) (Just (DroppedFile {contents, fil
...
@@ -499,7 +501,7 @@ fileTypeView d (s@(NTree (LNode {id}) _) /\ _) (Just (DroppedFile {contents, fil
, type: "button"
, type: "button"
} [H.text "Upload"]
} [H.text "Upload"]
]
]
fileTypeView _ _ (Nothing /\ _) = R.createElement el {} []
fileTypeView _ _ (Nothing /\ _)
_
= R.createElement el {} []
where
where
el = R.hooksComponent "FileTypeView" cpt
el = R.hooksComponent "FileTypeView" cpt
cpt props _ = pure $ H.div {} []
cpt props _ = pure $ H.div {} []
...
@@ -536,7 +538,7 @@ toHtml d s@(NTree (LNode {id, name, nodeType}) ary) n = R.createElement el {} []
...
@@ -536,7 +538,7 @@ toHtml d s@(NTree (LNode {id, name, nodeType}) ary) n = R.createElement el {} []
, popOverIcon nodeState
, popOverIcon nodeState
, nodePopupView d nodeState
, nodePopupView d nodeState
, createNodeView d nodeState
, createNodeView d nodeState
, fileTypeView d nodeState droppedFile
, fileTypeView d nodeState droppedFile
isDragOver
]
]
folderIcon folderOpen@(open /\ _) =
folderIcon folderOpen@(open /\ _) =
H.a {onClick: R2.effToggler folderOpen}
H.a {onClick: R2.effToggler folderOpen}
...
...
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