Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Don't apply margin directly to palette canvas #2388

Benjamin King61394aeb89d1
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 2d0c62b9d..cd53e715b 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,5 +1,6 @@
{
"files.trimTrailingWhitespace": true,
+ "eslint.autoFixOnSave": true,
"[javascript]": {
"editor.tabSize": 2
},
diff --git a/web/css/palettes.css b/web/css/palettes.css
index a3196df74..fc61bde27 100644
--- a/web/css/palettes.css
+++ b/web/css/palettes.css
@@ -32,6 +32,7 @@
.wv-palettes-legend {
position: relative;
margin-top: 0;
+ margin-left: 5px;
}
.sidebar-panel div .colorbar-case {
position: relative;
@@ -172,7 +173,7 @@
height: 24px;
margin-bottom: 13px;
max-width: 231px;
- margin-left: 5px;
+ margin-left: 0;
}
@media (max-width: 740px) {
.wv-palettes-colorbar {
@@ -183,7 +184,7 @@
}
}
-.scrollbar-visible .wv-palettes-colorbar {
+.scrollbar-visible .wv-palettes-legend {
margin-left: 0;
}
.wv-palettes-colorbar:hover {