Don't force px
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/tp-splitter",
|
"name": "@tp/tp-splitter",
|
||||||
"version": "1.7.0",
|
"version": "1.7.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-splitter.js",
|
"main": "tp-splitter.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@@ -91,9 +91,9 @@ class TpVSplitter extends LitElement {
|
|||||||
console.warn('Both initialLeftWidth and initialRightWidth are set. Using initialLeftWidth.');
|
console.warn('Both initialLeftWidth and initialRightWidth are set. Using initialLeftWidth.');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.style.gridTemplateColumns = `${this.initialLeftWidth}px var(--tp-splitter-width, 5px) 1fr`;
|
this.style.gridTemplateColumns = `${this.initialLeftWidth} var(--tp-splitter-width, 5px) 1fr`;
|
||||||
} else if (this.initialRightWidth) {
|
} else if (this.initialRightWidth) {
|
||||||
this.style.gridTemplateColumns = `1fr var(--tp-splitter-width, 5px) ${this.initialRightWidth}px`;
|
this.style.gridTemplateColumns = `1fr var(--tp-splitter-width, 5px) ${this.initialRightWidth}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user