Set horizontal margin for even better consistency

This commit is contained in:
tess 2024-11-12 22:09:37 +01:00
parent 6d6b03dfe2
commit 68e5b5a84a
2 changed files with 8 additions and 8 deletions

View file

@ -119,7 +119,7 @@ onMounted(() => {
}
const rect = props.source.getBoundingClientRect();
const x = Math.max(2, ((rect.left + (props.source.offsetWidth / 2)) - (300 / 2)) + window.scrollX);
const x = Math.max(1, ((rect.left + (props.source.offsetWidth / 2)) - (300 / 2)) + window.scrollX);
const y = rect.top + props.source.offsetHeight + window.scrollY;
top.value = y;