Commit dfc80e93 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[Graph] Range Slider styling

parent d4d30313
...@@ -9,5 +9,12 @@ ...@@ -9,5 +9,12 @@
position: absolute; position: absolute;
cursor: pointer; cursor: pointer;
} }
.range-slider .knob .button {
top: -7px;
background: #f00;
width: 10px;
height: 10px;
border-radius: 50%;
}
/*# sourceMappingURL=range-slider.css.map */ /*# sourceMappingURL=range-slider.css.map */
...@@ -8,3 +8,11 @@ ...@@ -8,3 +8,11 @@
.knob .knob
position: absolute position: absolute
cursor: pointer cursor: pointer
.button
top: -7px
background: #f00
width: 10px
height: 10px
border-radius: 50%
...@@ -90,7 +90,7 @@ useGraphControls :: R.Hooks (Record Controls) ...@@ -90,7 +90,7 @@ useGraphControls :: R.Hooks (Record Controls)
useGraphControls = do useGraphControls = do
cursorSize <- R.useState' 10.0 cursorSize <- R.useState' 10.0
labelSize <- R.useState' 3.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 multiNodeSelect <- R.useRef false
showControls <- R.useState' false showControls <- R.useState' false
showEdges <- R.useState' true showEdges <- R.useState' true
......
...@@ -178,7 +178,10 @@ renderScale ref {width,height} {min, max} = ...@@ -178,7 +178,10 @@ renderScale ref {width,height} {min, max} =
style = { width: "100%", height: "3px" } style = { width: "100%", height: "3px" }
renderKnob ref val bounds knob set epsilon = 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 where
text (Just num) = show num text (Just num) = show num
text Nothing = "error" text Nothing = "error"
......
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