diff --git a/src/app/_eth/registry.ts b/src/app/_eth/registry.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/app/_helpers/clipboard-copy.ts b/src/app/_helpers/clipboard-copy.ts index 2f99278..404aeac 100644 --- a/src/app/_helpers/clipboard-copy.ts +++ b/src/app/_helpers/clipboard-copy.ts @@ -4,11 +4,10 @@ function copyToClipboard(text: any): boolean { // set the innerHTML of the div hiddenCopy.innerHTML = text; // set the position to be absolute and off the screen - hiddenCopy.style.position = 'absolute'; - hiddenCopy.style.left = '-9999px'; + hiddenCopy.classList.add('clipboard'); // check and see if the user had a text selection range - let currentRange; + let currentRange: Range | boolean; if (document.getSelection().rangeCount > 0) { // the user has a text selection range, store it currentRange = document.getSelection().getRangeAt(0); diff --git a/src/styles.scss b/src/styles.scss index 6d0dbee..9696d1b 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -54,6 +54,11 @@ table { width: 100%; } li.breadcrumb-item.active, footer.footer { color: black; } +.clipboard { + position: absolute; + left: -9999px; +} + #sidebar { position: sticky; position: -webkit-sticky;