minor fixes: scroll bars on overflowing elements, copy button size, function args spacing, type icons padding, link to window.location.href

This commit is contained in:
Xanazf 2024-09-28 10:44:54 +03:00
parent 3c2fb32b3e
commit ffdbd0e614
13 changed files with 488 additions and 546 deletions

View file

@ -42,6 +42,7 @@
button.onclick = () => {
let link = window.location.href.split("#")[0];
link += `#-${heading.textContent?.slice(10).trimEnd().replaceAll(" ", "-").toLowerCase()}`;
window.location.href = link
navigator.clipboard.writeText(link);
heading.classList.toggle("copied")
setTimeout(() => heading.classList.remove("copied"), 1000);