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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
dfc80e93
Commit
dfc80e93
authored
Aug 19, 2019
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Graph] Range Slider styling
parent
d4d30313
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
range-slider.css
dist/styles/range-slider.css
+7
-0
range-slider.sass
dist/styles/range-slider.sass
+8
-0
Controls.purs
src/Gargantext/Components/GraphExplorer/Controls.purs
+1
-1
RangeSlider.purs
src/Gargantext/Components/RangeSlider.purs
+4
-1
No files found.
dist/styles/range-slider.css
View file @
dfc80e93
...
...
@@ -9,5 +9,12 @@
position
:
absolute
;
cursor
:
pointer
;
}
.range-slider
.knob
.button
{
top
:
-7px
;
background
:
#f00
;
width
:
10px
;
height
:
10px
;
border-radius
:
50%
;
}
/*# sourceMappingURL=range-slider.css.map */
dist/styles/range-slider.sass
View file @
dfc80e93
...
...
@@ -8,3 +8,11 @@
.knob
position
:
absolute
cursor
:
pointer
.button
top
:
-7px
background
:
#f00
width
:
10px
height
:
10px
border-radius
:
50%
src/Gargantext/Components/GraphExplorer/Controls.purs
View file @
dfc80e93
...
...
@@ -90,7 +90,7 @@ useGraphControls :: R.Hooks (Record Controls)
useGraphControls = do
cursorSize <- R.useState' 10.0
labelSize <- R.useState' 3.0
nodeSize <- R.useState' $ Range.Closed { min: 5.0, max:
5
.0 }
nodeSize <- R.useState' $ Range.Closed { min: 5.0, max:
10
.0 }
multiNodeSelect <- R.useRef false
showControls <- R.useState' false
showEdges <- R.useState' true
...
...
src/Gargantext/Components/RangeSlider.purs
View file @
dfc80e93
...
...
@@ -178,7 +178,10 @@ renderScale ref {width,height} {min, max} =
style = { width: "100%", height: "3px" }
renderKnob ref val bounds knob set epsilon =
H.div { ref, tabIndex, className, aria, onMouseDown, style } [ H.text (text $ Just val) ]
H.div { ref, tabIndex, className, aria, onMouseDown, style } [
H.div { className: "button" } []
, H.text (text $ Just val)
]
where
text (Just num) = show num
text Nothing = "error"
...
...
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