diff options
author | Melissa Zhang <mzhang19096@gmail.com> | 2020-08-04 21:53:28 -0700 |
---|---|---|
committer | Melissa Zhang <mzhang19096@gmail.com> | 2020-08-04 21:53:28 -0700 |
commit | 85241fabc463f5ec9933e61e8ba68dffb77d87a3 (patch) | |
tree | ce1cc52aee7ed49cc0b66e683cac39505a9093f5 /src | |
parent | 8d7eef677e03846397e49177d9821f5cdc3df6b2 (diff) |
display 'link created' box in the upper left corner when link to annotation is complete
Diffstat (limited to 'src')
-rw-r--r-- | src/client/apis/hypothesis/HypothesisUtils.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/apis/hypothesis/HypothesisUtils.ts b/src/client/apis/hypothesis/HypothesisUtils.ts index 8d941cac6..d5f08f806 100644 --- a/src/client/apis/hypothesis/HypothesisUtils.ts +++ b/src/client/apis/hypothesis/HypothesisUtils.ts @@ -137,13 +137,13 @@ export namespace Hypothesis { runInAction(() => { if (linkDoc) { TaskCompletionBox.textDisplayed = "Link Created"; - TaskCompletionBox.popupX = screenX; - TaskCompletionBox.popupY = screenY - 133; + TaskCompletionBox.popupX = 60; + TaskCompletionBox.popupY = 60; TaskCompletionBox.taskCompleted = true; if (LinkDescriptionPopup.showDescriptions === "ON" || !LinkDescriptionPopup.showDescriptions) { - LinkDescriptionPopup.popupX = screenX; - LinkDescriptionPopup.popupY = screenY - 100; + LinkDescriptionPopup.popupX = 60; + LinkDescriptionPopup.popupY = 93; LinkDescriptionPopup.descriptionPopup = true; } setTimeout(action(() => { TaskCompletionBox.taskCompleted = false; }), 2500); |