Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

embed mode timeline controls and animate button conditional positioning tweaks

Ed Plato871a5220e0b1
diff --git a/web/css/embed.css b/web/css/embed.css
index 184df1867..68a81e0b9 100644
--- a/web/css/embed.css
+++ b/web/css/embed.css
@@ -125,6 +125,7 @@
.mobile-date-change-arrows-btn {
left: 168px;
transform: scale(0.75);
+ transform-origin: bottom left;
}
/* COMPARE */
@@ -196,7 +197,8 @@
}
@media only screen and (max-width: 450px) {
.wv-animation-widget-wrapper.minimized {
- left: 93px;
+ bottom: 90px;
+ left: 10px;
}
}
}
diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.js
index 7551f561e..41c6fb5de 100644
--- a/web/js/containers/timeline/timeline.js
+++ b/web/js/containers/timeline/timeline.js
@@ -911,8 +911,8 @@ class Timeline extends React.Component {
let mobileLeft = 190;
let mobileBottom = 10;
if (isEmbedModeActive) {
- mobileLeft = 135;
- mobileBottom = 4;
+ mobileLeft = 145;
+ mobileBottom = 10;
}
// positioning will change depending on a combination of:
// 1) subdaily (mobile date picker width);
@@ -927,8 +927,8 @@ class Timeline extends React.Component {
mobileLeft = isCompareModeActive ? 112 : 10;
mobileBottom = 65;
if (isEmbedModeActive) {
- mobileLeft = isCompareModeActive ? 80 : 0;
- mobileBottom = 45;
+ mobileLeft = isCompareModeActive ? 80 : 10;
+ mobileBottom = 50;
}
}