Styling fix

This commit is contained in:
barsdeveloper
2023-05-20 18:25:11 +02:00
parent 62b356781e
commit 9add38e914
10 changed files with 72 additions and 70 deletions

View File

@@ -58,7 +58,7 @@ export default class IInputPinTemplate extends PinTemplate {
if (/** @type {typeof IInputPinTemplate} */(this.constructor).canWrapInput) {
this.element.addEventListener("input", this.#checkWrapHandler)
this.nameWidth = this.blueprint.scaleCorrect(
this.element.querySelector(".ueb-pin-name").getBoundingClientRect().width
this.element.querySelector(".ueb-pin-name")?.getBoundingClientRect().width ?? 0
)
}
this.#inputWrapper = this.element.querySelector(".ueb-pin-input-wrapper")