Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Apply correct cursor properties to slider elements #1592

Benjamin King4f513cd12773
diff --git a/web/css/anim.widget.css b/web/css/anim.widget.css
index f7b6e97dd..370c408ae 100644
--- a/web/css/anim.widget.css
+++ b/web/css/anim.widget.css
@@ -75,7 +75,11 @@
display: block;
text-align: center;
}
-
+.wv-animation-widget .anim-frame-rate-label {
+ bottom: 25px;
+ font-size: 11px;
+ cursor: default;
+}
.wv-animation-widget .wv-anim-dates-case {
height: 48px;
width: 100%;
diff --git a/web/css/rc-slider-overrides.css b/web/css/rc-slider-overrides.css
index bca29571b..c551a9990 100644
--- a/web/css/rc-slider-overrides.css
+++ b/web/css/rc-slider-overrides.css
@@ -6,6 +6,7 @@
}
.rc-slider {
padding: 11px 0 16px;
+ cursor: pointer;
}
.rc-slider-handle:focus {
box-shadow: none;
diff --git a/web/js/components/animation-widget/animation-widget.js b/web/js/components/animation-widget/animation-widget.js
index 806592410..d06c755f9 100644
--- a/web/js/components/animation-widget/animation-widget.js
+++ b/web/js/components/animation-widget/animation-widget.js
@@ -12,14 +12,14 @@ const RangeHandle = props => {
const positionStyle = {
position: 'absolute',
- left: `${(offset - 5).toFixed(2)}%`,
- bottom: 25,
- fontSize: '11px'
+ left: `${(offset - 5).toFixed(2)}%`
};
return (
<React.Fragment>
- <span style={positionStyle}>{value < 10 ? value.toFixed(1) : value}</span>
+ <span className="anim-frame-rate-label" style={positionStyle}>
+ {value < 10 ? value.toFixed(1) : value}
+ </span>
<Handle
dragging={dragging.toString()}
value={value}