Merge pull request #2 from w-e-w/badge_style

remove Badge background and ⚠️ ->📏
This commit is contained in:
Gerschel 2023-02-10 20:44:12 -08:00 committed by GitHub
commit 742d86eed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -18,8 +18,8 @@ class AspectRatioSliderController {
}
//Adjust badge icon if rounding is on
if (this.roundingSource.getVal()) {
this.roundingIndicatorBadge.classList.add("active");
this.roundingIndicatorBadge.innerText = "⚠️";
//this.roundingIndicatorBadge.classList.add("active");
this.roundingIndicatorBadge.innerText = "📏";
}
//Make badge clickable to toggle setting
this.roundingIndicatorBadge.addEventListener("click", () => {
@ -28,11 +28,11 @@ class AspectRatioSliderController {
//Make rounding setting toggle badge text and style if setting changes
this.roundingSource.child.addEventListener("change", () => {
if (this.roundingSource.getVal()) {
this.roundingIndicatorBadge.classList.add("active");
this.roundingIndicatorBadge.innerText = "⚠️";
//this.roundingIndicatorBadge.classList.add("active");
this.roundingIndicatorBadge.innerText = "📏";
}
else {
this.roundingIndicatorBadge.classList.remove("active");
//this.roundingIndicatorBadge.classList.remove("active");
this.roundingIndicatorBadge.innerText = "📐";
}
this.adjustStepSize();

View File

@ -776,7 +776,7 @@ footer {
.rounding-badge {
display: inline-block;
border-radius: 0px;
background-color: #ccc;
/*background-color: #ccc;*/
cursor: pointer;
position: absolute;
top: -10px;