Commit a61b1948 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[graph] some fixes to left/right handed layout

parent fa75e6a9
...@@ -132,7 +132,7 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt ...@@ -132,7 +132,7 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt
[ outer [ outer
[ inner [ inner
[ rowControls [ Controls.controls controls ] [ rowControls [ Controls.controls controls ]
, R2.row [ , R2.row $ mainLayout handed $
tree { frontends tree { frontends
, handed , handed
, mCurrentRoute , mCurrentRoute
...@@ -140,14 +140,17 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt ...@@ -140,14 +140,17 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt
, sessions , sessions
, show: fst controls.showTree , show: fst controls.showTree
, showLogin: snd showLogin } , showLogin: snd showLogin }
, RH.div { ref: graphRef, id: "graph-view", className: "col-md-12" } [] -- graph container /\
, graphView { controls RH.div { ref: graphRef, id: "graph-view", className: "col-md-12" } []
/\
graphView { controls
, elRef: graphRef , elRef: graphRef
, graphId , graphId
, graph , graph
, multiSelectEnabledRef , multiSelectEnabledRef
} }
, mSidebar mMetaData { frontends /\
mSidebar mMetaData { frontends
, graph , graph
, graphId , graphId
, graphVersion , graphVersion
...@@ -161,7 +164,9 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt ...@@ -161,7 +164,9 @@ explorerCpt = R.hooksComponent "G.C.GraphExplorer.explorer" cpt
] ]
] ]
] ]
]
mainLayout Types.RightHanded (tree' /\ gc /\ gv /\ sdb) = [tree', gc, gv, sdb]
mainLayout Types.LeftHanded (tree' /\ gc /\ gv /\ sdb) = [sdb, gc, gv, tree']
outer = RH.div { className: "col-md-12" } outer = RH.div { className: "col-md-12" }
inner = RH.div { className: "container-fluid", style: { paddingTop: "90px" } } inner = RH.div { className: "container-fluid", style: { paddingTop: "90px" } }
......
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