mirror of
https://github.com/jgthms/bulma
synced 2026-03-19 20:04:30 -07:00
Fix #1570
This commit is contained in:
@@ -111,7 +111,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
var $parent = $el.parentNode;
|
||||
if ($parent && $parent.classList.contains('bd-is-more')) {
|
||||
var showEl = '<button class="bd-show"><div><span class="icon"><i class="fa fa-code"></i></span> <strong>Show code</strong></div></button>';
|
||||
var showEl = '<button class="bd-show"><div><span class="icon"><i class="fas fa-code"></i></span> <strong>Show code</strong></div></button>';
|
||||
$el.insertAdjacentHTML('beforeend', showEl);
|
||||
} else if ($el.firstElementChild.scrollHeight > 480 && $el.firstElementChild.clientHeight <= 480) {
|
||||
$el.insertAdjacentHTML('beforeend', expandEl);
|
||||
@@ -154,11 +154,13 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
});
|
||||
}
|
||||
|
||||
new Clipboard('.bd-copy', {
|
||||
target: function target(trigger) {
|
||||
return trigger.previousSibling;
|
||||
}
|
||||
});
|
||||
setTimeout(function () {
|
||||
new Clipboard('.bd-copy', {
|
||||
target: function target(trigger) {
|
||||
return trigger.previousElementSibling.firstElementChild;
|
||||
}
|
||||
});
|
||||
}, 100);
|
||||
|
||||
// Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user