🔀 Merge local & remote code, seems not good for this.

This commit is contained in:
elkan1788
2024-02-18 16:25:00 +08:00
25 changed files with 202 additions and 23 deletions

View File

@@ -99,7 +99,7 @@
@if $icon {
content: $icon;
}
font-family: 'Font Awesome 5 Free';
font-family: 'Font Awesome 6 Free';
font-weight: 900;
}

View File

@@ -278,7 +278,7 @@ NexT.utils = {
const button = element.querySelector('.copy-btn');
button.addEventListener('click', () => {
const lines = element.querySelector('.code') || element.querySelector('code');
const code = lines.innerText;
const code = lines.innerText.replace(/(\n{2,})/g, '\n');
if (navigator.clipboard) {
// https://caniuse.com/mdn-api_clipboard_writetext
navigator.clipboard.writeText(code).then(() => {
@@ -670,4 +670,4 @@ NexT.utils = {
intersectionObserver.observe(element);
});
}
};
};