Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

remove floats and add flexbox for timeline to fix 1061

Ed Platoaa8b97dea0bf
diff --git a/web/css/timeline.css b/web/css/timeline.css
index faee993a9..1364b417a 100644
--- a/web/css/timeline.css
+++ b/web/css/timeline.css
@@ -9,10 +9,11 @@ button:focus {
background: rgb(40, 40, 40);
background: rgba(40, 40, 40, 0.9);
border-radius: 5px;
- display: inline-block;
+ display: flex;
+ flex-flow: row nowrap;
margin-left: 10px;
margin-right: 10px;
- min-height: 65px;
+ height: 65px;
bottom: 10px;
}
@@ -133,7 +134,8 @@ g.plot rect.data-bar-invisible {
#timeline-header {
margin-top: 2px;
- width: 310px;
+ min-width: 310px;
+ display: inline-block;
}
#timeline-header.subdaily {
@@ -354,11 +356,6 @@ g.plot rect.data-bar-invisible {
fill: #333;
}
-#timeline-footer,
-#timeline-header {
- float: left;
-}
-
#timeline-header .animate-button .wv-animate {
color: #fff;
font-size: 2.5em;
@@ -379,7 +376,6 @@ g.plot rect.data-bar-invisible {
}
#timeline-footer {
- height: 65px;
border-left: 1px solid #666;
border-right: 1px solid #666;
}
@@ -500,7 +496,7 @@ g.plot rect.data-bar-invisible {
position: absolute;
top: 0;
right: 0;
- height: 65px;
+ height: 64px;
width: 20px;
cursor: pointer;
border-left: 1px solid #1a1a1a;
diff --git a/web/js/date/timeline.js b/web/js/date/timeline.js
index 6d9763aa9..eb27751b0 100644
--- a/web/js/date/timeline.js
+++ b/web/js/date/timeline.js
@@ -100,7 +100,7 @@ export function timeline(models, config, ui) {
self.getWidth();
self.svg.attr('width', self.width)
- .attr('viewBox', '0 -7 ' + self.width + ' ' + (self.height + self.margin.top + self.margin.bottom + 26));
+ .attr('viewBox', '0 -6 ' + self.width + ' ' + (self.height + self.margin.top + self.margin.bottom + 24));
d3.select('#timeline-boundary rect')
.attr('width', self.width);
@@ -134,8 +134,8 @@ export function timeline(models, config, ui) {
self.svg = d3.select('#timeline-footer')
.append('svg:svg')
.attr('width', self.width) // + margin.left + margin.right)
- .attr('height', self.height + self.margin.top + self.margin.bottom + 26)
- .attr('viewBox', '0 -7 ' + self.width + ' ' + (self.height + self.margin.top + self.margin.bottom + 26));
+ .attr('height', self.height + self.margin.top + self.margin.bottom + 24)
+ .attr('viewBox', '0 -6 ' + self.width + ' ' + (self.height + self.margin.top + self.margin.bottom + 24));
self.svg
.append('svg:defs')