Commit 84bea376 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[ERGO] Tree handed flex start|end fixed

parent 020203b9
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
.tree .node-actions .update-button.disabled { .tree .node-actions .update-button.disabled {
cursor: wait; cursor: wait;
} }
.tree .lefthanded li .leaf {
justify-content: flex-end;
}
.tree .righthanded li .leaf {
justify-content: flex-start;
}
.progress-pie { .progress-pie {
background: rgba(51, 122, 183, 0.1); background: rgba(51, 122, 183, 0.1);
......
...@@ -9,6 +9,16 @@ ...@@ -9,6 +9,16 @@
cursor: pointer cursor: pointer
&.disabled &.disabled
cursor: wait 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 // based on https://codeburst.io/how-to-pure-css-pie-charts-w-css-variables-38287aea161e
.progress-pie .progress-pie
......
...@@ -133,9 +133,10 @@ loadedTreeView p = R.createElement loadedTreeViewCpt p [] ...@@ -133,9 +133,10 @@ loadedTreeView p = R.createElement loadedTreeViewCpt p []
, session , session
, tasks , tasks
, tree , tree
} _ = pure $ H.ul { className: "tree " <> if handed == GT.RightHanded } _ = pure $ H.ul { className: "tree"}
then "flex-start" [ H.div { className: if handed == GT.RightHanded
else "flex-end" then "righthanded"
else "lefthanded"
} }
[ toHtml { asyncTasks [ toHtml { asyncTasks
, frontends , frontends
...@@ -148,6 +149,7 @@ loadedTreeView p = R.createElement loadedTreeViewCpt p [] ...@@ -148,6 +149,7 @@ loadedTreeView p = R.createElement loadedTreeViewCpt p []
, tree , tree
} }
] ]
]
------------------------------------------------------------------------ ------------------------------------------------------------------------
......
...@@ -87,7 +87,8 @@ nodeMainSpan p@{ dispatch, folderOpen, frontends, handed, session } = R.createEl ...@@ -87,7 +87,8 @@ nodeMainSpan p@{ dispatch, folderOpen, frontends, handed, session } = R.createEl
, nodeActions { id , nodeActions { id
, nodeType , nodeType
, refreshTree: const $ dispatch RefreshTree , refreshTree: const $ dispatch RefreshTree
, session } , 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
, barType: Pie , barType: Pie
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment