Fix link location and css small improvement

This commit is contained in:
barsdeveloper
2025-01-26 20:31:10 +02:00
parent 9985071d61
commit dd81356d68
10 changed files with 38 additions and 26 deletions

View File

@@ -175,7 +175,7 @@ export default class PinTemplate extends ITemplate {
const rect = (this.#iconElement ?? this.element).getBoundingClientRect()
/** @type {[Number, Number]} */
const boundingLocation = [
this.element.isInputVisually() && !oppositeDirection ? rect.left : rect.right + 1,
this.element.isInputVisually() != oppositeDirection ? rect.left : rect.right + 1,
(rect.top + rect.bottom) / 2
]
const location = Utility.convertLocation(boundingLocation, this.blueprint.template.gridElement)