Show distances from main image
Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
This commit is contained in:
parent
8cba027e8f
commit
578576a4fd
@ -77,6 +77,7 @@ function loadFace(id) {
|
|||||||
const row = document.createElement("div"),
|
const row = document.createElement("div"),
|
||||||
left = document.createElement("div");
|
left = document.createElement("div");
|
||||||
row.classList.add("editor-row");
|
row.classList.add("editor-row");
|
||||||
|
left.classList.add("key");
|
||||||
left.textContent = key;
|
left.textContent = key;
|
||||||
|
|
||||||
let right;
|
let right;
|
||||||
@ -89,7 +90,7 @@ function loadFace(id) {
|
|||||||
const distance = document.createElement("div"),
|
const distance = document.createElement("div"),
|
||||||
facePhoto = createFace(relation.faceId, relation.photoId, true);
|
facePhoto = createFace(relation.faceId, relation.photoId, true);
|
||||||
distance.classList.add("distance");
|
distance.classList.add("distance");
|
||||||
distance.textContent = face.distance.toFixed(2);
|
distance.textContent = relation.distance.toFixed(2);
|
||||||
facePhoto.appendChild(distance);
|
facePhoto.appendChild(distance);
|
||||||
right.appendChild(facePhoto);
|
right.appendChild(facePhoto);
|
||||||
}
|
}
|
||||||
@ -189,6 +190,7 @@ function createNewIdenityEditor() {
|
|||||||
left = document.createElement("div"),
|
left = document.createElement("div"),
|
||||||
right = document.createElement("input");
|
right = document.createElement("input");
|
||||||
row.classList.add("editor-row");
|
row.classList.add("editor-row");
|
||||||
|
left.classList.add("key");
|
||||||
left.textContent = key;
|
left.textContent = key;
|
||||||
row.appendChild(left);
|
row.appendChild(left);
|
||||||
row.appendChild(right);
|
row.appendChild(right);
|
||||||
@ -309,7 +311,6 @@ body {
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
color: white;
|
color: white;
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-row {
|
.editor-row {
|
||||||
@ -318,7 +319,7 @@ body {
|
|||||||
padding: 0.25em 0.5em;
|
padding: 0.25em 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.editor-row :first-child {
|
.editor-row .key {
|
||||||
width: 10em;
|
width: 10em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user