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
84bea376
Commit
84bea376
authored
Aug 24, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ERGO] Tree handed flex start|end fixed
parent
020203b9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
50 deletions
+69
-50
Tree.css
dist/styles/Tree.css
+6
-0
Tree.sass
dist/styles/Tree.sass
+10
-0
Tree.purs
src/Gargantext/Components/Forest/Tree.purs
+16
-14
Node.purs
src/Gargantext/Components/Forest/Tree/Node.purs
+37
-36
No files found.
dist/styles/Tree.css
View file @
84bea376
...
...
@@ -13,6 +13,12 @@
.tree
.node-actions
.update-button.disabled
{
cursor
:
wait
;
}
.tree
.lefthanded
li
.leaf
{
justify-content
:
flex-end
;
}
.tree
.righthanded
li
.leaf
{
justify-content
:
flex-start
;
}
.progress-pie
{
background
:
rgba
(
51
,
122
,
183
,
0.1
);
...
...
dist/styles/Tree.sass
View file @
84bea376
...
...
@@ -9,6 +9,16 @@
cursor
:
pointer
&
.disabled
cursor
:
wait
.lefthanded
li
.leaf
justify-content
:
flex-end
.righthanded
li
.leaf
justify-content
:
flex-start
// based on https://codeburst.io/how-to-pure-css-pie-charts-w-css-variables-38287aea161e
.progress-pie
...
...
src/Gargantext/Components/Forest/Tree.purs
View file @
84bea376
...
...
@@ -133,9 +133,10 @@ loadedTreeView p = R.createElement loadedTreeViewCpt p []
, session
, tasks
, tree
} _ = pure $ H.ul { className: "tree " <> if handed == GT.RightHanded
then "flex-start"
else "flex-end"
} _ = pure $ H.ul { className: "tree"}
[ H.div { className: if handed == GT.RightHanded
then "righthanded"
else "lefthanded"
}
[ toHtml { asyncTasks
, frontends
...
...
@@ -148,6 +149,7 @@ loadedTreeView p = R.createElement loadedTreeViewCpt p []
, tree
}
]
]
------------------------------------------------------------------------
...
...
src/Gargantext/Components/Forest/Tree/Node.purs
View file @
84bea376
...
...
@@ -87,7 +87,8 @@ nodeMainSpan p@{ dispatch, folderOpen, frontends, handed, session } = R.createEl
, nodeActions { id
, nodeType
, refreshTree: const $ dispatch RefreshTree
, session }
, session
}
, fileTypeView { dispatch, droppedFile, id, isDragOver, nodeType }
, H.div {} (map (\t -> asyncProgressBar { asyncTask: t
, barType: Pie
...
...
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