🔀 Merge local & remote code, seems not good for this.
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
@if $icon {
|
||||
content: $icon;
|
||||
}
|
||||
font-family: 'Font Awesome 5 Free';
|
||||
font-family: 'Font Awesome 6 Free';
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user