Skip to content
Snippets Groups Projects
Commit 0ef6f2e3 authored by svornost's avatar svornost
Browse files

Avoid pixels, deal with zoom better

parent 52b761ea
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ App.UI.DOM.InteractiveDetails = class { ...@@ -31,7 +31,7 @@ App.UI.DOM.InteractiveDetails = class {
if (overlayRect.right > window.innerWidth) { if (overlayRect.right > window.innerWidth) {
if (overlayRect.width < linkRect.left) { if (overlayRect.width < linkRect.left) {
// if it won't fit in the default position, but it *will* fit on the left, force it to move over to the left side of the link // if it won't fit in the default position, but it *will* fit on the left, force it to move over to the left side of the link
this.span.style.right = `${linkRect.width}px`; this.span.style.right = "100%";
} }
// if it won't fit on either side, give up and leave it where it is. TODO: maybe do something smarter? // if it won't fit on either side, give up and leave it where it is. TODO: maybe do something smarter?
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment