diff --git a/website/pastebook/package-lock.json b/website/pastebook/package-lock.json index 726da0b..c0c40da 100644 --- a/website/pastebook/package-lock.json +++ b/website/pastebook/package-lock.json @@ -1085,12 +1085,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -1332,9 +1332,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" diff --git a/website/pastebook/src/routes/+page.svelte b/website/pastebook/src/routes/+page.svelte index f484a84..fa8d728 100644 --- a/website/pastebook/src/routes/+page.svelte +++ b/website/pastebook/src/routes/+page.svelte @@ -150,7 +150,6 @@ text-align: center; &:hover { - margin: 0 13px; cursor: default; } diff --git a/website/pastebook/src/routes/pastes/[slug]/+page.svelte b/website/pastebook/src/routes/pastes/[slug]/+page.svelte index 31b4013..a18ef52 100644 --- a/website/pastebook/src/routes/pastes/[slug]/+page.svelte +++ b/website/pastebook/src/routes/pastes/[slug]/+page.svelte @@ -96,6 +96,7 @@ isShifting = true let hoveredElement = document.elementFromPoint(x, y).parentElement.parentElement + if (hoveredElement === null) return if (hoveredElement.id === "hoverable") { handler() @@ -116,7 +117,9 @@ } let idElement = document.getElementById("hash") - idElement.style.opacity = 1 + if (idElement === null) return + + idElement.style.opacity = "1" if (window.innerWidth < 600) { idElement.style.height = "7px" @@ -127,6 +130,7 @@ function undoHandler() { let idElement = document.getElementById("hash") + if (idElement === null) return idElement.style.opacity = 0 idElement.style.height = "0"