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
143
Issues
143
List
Board
Labels
Milestones
Merge Requests
8
Merge Requests
8
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
6e2e2943
Verified
Commit
6e2e2943
authored
Dec 11, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[css] fix show/hide tree
parent
37a9c56e
Pipeline
#7117
failed with stages
in 11 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Router.purs
src/Gargantext/Components/Router.purs
+6
-5
No files found.
src/Gargantext/Components/Router.purs
View file @
6e2e2943
...
...
@@ -79,9 +79,10 @@ router = R2.leaf routerCpt
routerCpt :: R.Component Props
routerCpt = here.component "router" cpt
where
cpt { boxes: boxes@{ handed } } _ = do
cpt { boxes: boxes@{ handed
, showTree
} } _ = do
-- States
handed' <- R2.useLive' handed
showTree' <- R2.useLive' showTree
-- Computed
let
...
...
@@ -122,9 +123,9 @@ routerCpt = here.component "router" cpt
-- , data: { "bs-dismiss": "offcanvas" } } [] ]
-- , H.div { className: "offcanvas-body" }
-- [ forest { boxes } ] ]
[ H.div { className: "
d-none d-lg-block col-lg-3"
} [ forest { boxes } ]
[ H.div { className: "
col-lg-3 " <> (showTree' ? "" $ "d-none")
} [ forest { boxes } ]
-- , H.div { className: "col-md-12 col-lg-8" } [ mainPage { boxes } ]
, H.div { className: "col
-md-12 col-lg-9
" } [ mainPage { boxes } ]
, H.div { className: "col" } [ mainPage { boxes } ]
, sidePanel { boxes }
]
]
...
...
@@ -250,7 +251,7 @@ forestCpt = R.memo' $ here.component "forest" cpt
where
cpt { boxes } _ = do
-- States
showTree' <- R2.useLive' boxes.showTree
--
showTree' <- R2.useLive' boxes.showTree
-- Hooks
resizeHandler <- useResizeHandler
...
...
@@ -270,7 +271,7 @@ forestCpt = R.memo' $ here.component "forest" cpt
{ className: "router__aside"
-- @XXX: ReactJS lack of "keep-alive" feature workaround solution
-- @link https://github.com/facebook/react/issues/12039
-- , style: { display: showTree' ? "
block
" $ "none" }
-- , style: { display: showTree' ? "" $ "none" }
}
[ H.div
{ className: "router__aside__inner" }
...
...
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