mirror of
https://github.com/encode/django-rest-framework.git
synced 2026-01-09 18:20:55 +03:00
Make "Copy" button smaller
This commit is contained in:
parent
082b6b6b58
commit
1187d01a79
|
|
@ -1,7 +1,7 @@
|
|||
document.addEventListener("DOMContentLoaded", function () {
|
||||
document.querySelectorAll("pre > code").forEach(function (codeBlock) {
|
||||
const button = document.createElement("button");
|
||||
button.className = "copy-block-button btn btn-inverse btn-small";
|
||||
button.className = "copy-block-button btn btn-inverse btn-mini";
|
||||
button.type = "button";
|
||||
button.textContent = "Copy";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user