forked from external-repos/squoosh
Design review fixes (#172)
* Design review fixes * Adding styles for mozjpeg & fixing some merge errors
This commit is contained in:
committed by
Jake Archibald
parent
b25d1eaf86
commit
37f5c0dd76
@@ -73,8 +73,9 @@ class RangeInputElement extends HTMLElement {
|
||||
const displayValue = labelPrecision ? value.toPrecision(labelPrecision) :
|
||||
Math.round(value).toString();
|
||||
|
||||
this.style.setProperty('--value-percent', percent + '%');
|
||||
this._valueDisplay.textContent = displayValue;
|
||||
this.style.setProperty('--value-percent', percent + '%');
|
||||
this.style.setProperty('--value-width', '' + displayValue.length);
|
||||
}
|
||||
|
||||
private _reflectAttributes() {
|
||||
|
||||
Reference in New Issue
Block a user