Float the button to the left

This commit is contained in:
Nick Chambers 2024-05-03 14:42:14 -05:00
parent 9a63bf6ff8
commit 721d7842eb
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@
const button = document.createElement("a");
button.innerText = "Random Page!";
button.href = `https://${url.hostname}/wiki/Special:Random`;
button.style["display"] = "block";
button.style["text-align"] = "left";
button.style["width"] = "100%";
const search = document.getElementById("p-search");
search.parentNode.insertBefore(button, search.nextSibling);