fix(web): raise the adjust teardrops — tips rest above the glyph tops
User report: the teardrop tip touched the letters. Raised the handle boxes 8px (tip now rests at the line-box top, ~4px above the glyph tops) — matches the Android handle spacing the app leg shipped.
This commit is contained in:
1 parent
a28ae5c88d
commit
19619ef817
1 file changed
+4
-2
@@ -1793,9 +1793,11 @@ document.addEventListener("alpine:init", () => {
|
|||||||
}
|
}
|
||||||
const host = map.toHost(pt.fx, pt.fy);
|
const host = map.toHost(pt.fx, pt.fy);
|
||||||
// The teardrop's rotated tip is its bottom point: hang the box
|
// The teardrop's rotated tip is its bottom point: hang the box
|
||||||
// ABOVE the boundary corner.
|
// ABOVE the boundary corner, tip resting ~4px above the glyph
|
||||||
|
// tops — a clear gap so the tip never covers letters (Android
|
||||||
|
// handle spacing).
|
||||||
dot.style.left = `${host.x - 13}px`;
|
dot.style.left = `${host.x - 13}px`;
|
||||||
dot.style.top = `${host.y - 22}px`;
|
dot.style.top = `${host.y - 30}px`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** Line boxes (page fractions) of a contiguous char-table span:
|
/** Line boxes (page fractions) of a contiguous char-table span:
|
||||||
|
|||||||
Reference in new issue
Block a user