[Editor] Tweak few values after review from UX

This commit is contained in:
Calixte Denizet 2023-09-20 18:12:12 +02:00
parent 34506f8874
commit b5d18006a7
5 changed files with 38 additions and 33 deletions

View file

@ -135,7 +135,7 @@ class AltTextManager {
const isLTR = this.#uiManager.direction === "ltr";
let left = null;
let top = Math.max(0, y - MARGIN);
let top = y;
top += Math.min(windowH - (top + dialogH), 0);
if (isLTR) {
@ -153,7 +153,7 @@ class AltTextManager {
if (left === null) {
top = null;
left = Math.max(0, x - MARGIN);
left = x;
left += Math.min(windowW - (left + dialogW), 0);
if (y > dialogH + MARGIN) {
top = y - dialogH - MARGIN;