Skip to content

Commit

Permalink
cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NatiTsegaye committed Nov 24, 2024
1 parent ed2e93f commit 18ab691
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/RemoteCalibrator.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/RemoteCalibrator.min.js.map

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion src/check/checkDistance.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const createViewingDistanceDiv = () => {
}

const removeViewingDistanceDiv = () => {
const viewingDistanceDiv = document.getElementById('viewing-distance-div')
const viewingDistanceDiv = document.getElementById('viewing-distance-p')
if (viewingDistanceDiv) {
document.body.removeChild(viewingDistanceDiv)
} else {
Expand All @@ -239,6 +239,15 @@ const removeViewingDistanceDiv = () => {
} else {
console.warn('Units div does not exist.')
}

const distanceContainer = document.getElementById(
'calibration-trackDistance-check-viewingDistance-container',
)
if (distanceContainer) {
document.body.removeChild(distanceContainer)
} else {
console.warn('Distance container does not exist.')
}
}

const updateViewingDistanceDiv = (distance, units) => {
Expand Down
2 changes: 1 addition & 1 deletion src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
align-items: center;
justify-content: center;
z-index: 999999999999;
line-height: 1.2;
line-height: 1;
}
.calibration-trackDistance-check-viewingDistance {
font-size: 60vh;
Expand Down

0 comments on commit 18ab691

Please sign in to comment.