mirror of
https://github.com/openvinotoolkit/stable-diffusion-webui.git
synced 2024-12-15 07:03:06 +03:00
remove Badge color and ⚠️ ->📏
This commit is contained in:
parent
374fe636b8
commit
b313221ca6
@ -18,8 +18,8 @@ class AspectRatioSliderController {
|
|||||||
}
|
}
|
||||||
//Adjust badge icon if rounding is on
|
//Adjust badge icon if rounding is on
|
||||||
if (this.roundingSource.getVal()) {
|
if (this.roundingSource.getVal()) {
|
||||||
this.roundingIndicatorBadge.classList.add("active");
|
//this.roundingIndicatorBadge.classList.add("active");
|
||||||
this.roundingIndicatorBadge.innerText = "⚠️";
|
this.roundingIndicatorBadge.innerText = "📏";
|
||||||
}
|
}
|
||||||
//Make badge clickable to toggle setting
|
//Make badge clickable to toggle setting
|
||||||
this.roundingIndicatorBadge.addEventListener("click", () => {
|
this.roundingIndicatorBadge.addEventListener("click", () => {
|
||||||
@ -28,11 +28,11 @@ class AspectRatioSliderController {
|
|||||||
//Make rounding setting toggle badge text and style if setting changes
|
//Make rounding setting toggle badge text and style if setting changes
|
||||||
this.roundingSource.child.addEventListener("change", () => {
|
this.roundingSource.child.addEventListener("change", () => {
|
||||||
if (this.roundingSource.getVal()) {
|
if (this.roundingSource.getVal()) {
|
||||||
this.roundingIndicatorBadge.classList.add("active");
|
//this.roundingIndicatorBadge.classList.add("active");
|
||||||
this.roundingIndicatorBadge.innerText = "⚠️";
|
this.roundingIndicatorBadge.innerText = "📏";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.roundingIndicatorBadge.classList.remove("active");
|
//this.roundingIndicatorBadge.classList.remove("active");
|
||||||
this.roundingIndicatorBadge.innerText = "📐";
|
this.roundingIndicatorBadge.innerText = "📐";
|
||||||
}
|
}
|
||||||
this.adjustStepSize();
|
this.adjustStepSize();
|
||||||
|
@ -776,7 +776,7 @@ footer {
|
|||||||
.rounding-badge {
|
.rounding-badge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
background-color: #ccc;
|
/*background-color: #ccc;*/
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
|
Loading…
Reference in New Issue
Block a user