diff --git a/components/slider-input.js b/components/slider-input.js
index 93193bf7..d3b84b01 100644
--- a/components/slider-input.js
+++ b/components/slider-input.js
@@ -24,13 +24,11 @@
constructor() {
super();
this.appendChild(template.content.cloneNode(true));
- }
- connectedCallback() {
const range = this.querySelector("input[type=range]");
const number = this.querySelector("input[type=number]");
- range.value = number.value = this.getAttribute("value") || 50;
+ range.value = number.value = this.value || this.getAttribute("value") || 50;
range.min = number.min = this.getAttribute("min") || 0;
range.max = number.max = this.getAttribute("max") || 100;
range.step = number.step = this.getAttribute("step") || 1;
diff --git a/index.css b/index.css
index bceaf86d..da6acf9e 100644
--- a/index.css
+++ b/index.css
@@ -1820,11 +1820,6 @@ div.editorLine {
padding: 0px 3px !important;
}
-#unitsBody > div > * {
- display: inline-block;
- margin-bottom: 0.2em;
-}
-
.unitsHeader {
margin: 0.8em 0 0 -1.1em;
font-weight: bold;
@@ -1836,28 +1831,21 @@ div.editorLine {
margin: 6px 0 0 6px;
}
-#unitsBody > div > div {
+#unitsBody label {
+ display: inline-block;
width: 9em;
}
-#unitsBody > div > input[type="range"] {
- width: 7em;
-}
-
#unitsBody > div > select,
#unitsBody > div > input[type="text"] {
- width: 12em;
-}
-
-#unitsBody > div > input[type="number"] {
- width: 4.35em;
-}
-
-#unitsBody > div > input,
-#unitsBody > div > select {
+ width: 14.4em;
border: 1px solid #e9e9e9;
}
+#unitsBody input[type="range"] {
+ width: 9em;
+}
+
#unitsEditor i.icon-lock-open,
#unitsEditor i.icon-lock {
color: #626573;
diff --git a/index.html b/index.html
index 0e29e116..a5206b4e 100644
--- a/index.html
+++ b/index.html
@@ -5107,11 +5107,11 @@
-
Distance unit:
+
-
-
1 map pixel =
-
-
+
+
+
+
-
Area unit:
+
-
Height unit:
+