mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-01 19:32:26 +02:00
fix button width
This commit is contained in:
parent
2943d69b63
commit
0d3496ade1
1 changed files with 5 additions and 0 deletions
|
@ -293,9 +293,14 @@
|
|||
if (previousCopied !== null) {
|
||||
previousCopied.innerHTML = previousHtmlCopied;
|
||||
}
|
||||
var originalWidth = button.offsetWidth;
|
||||
|
||||
previousHtmlCopied = button.innerHTML;
|
||||
button.innerHTML = '✓ ';
|
||||
previousCopied = button;
|
||||
if (button.offsetWidth !== originalWidth) {
|
||||
button.style.width = originalWidth + 'px';
|
||||
}
|
||||
}
|
||||
}, function(err) {
|
||||
console.error('Could not copy text: ', err);
|
||||
|
|
Loading…
Reference in a new issue