This commit is contained in:
Jeremy Thomas
2017-07-11 22:19:06 +01:00
parent 13b730934e
commit 8137c801e9
7 changed files with 1699 additions and 538 deletions

View File

@@ -67,7 +67,7 @@ document.addEventListener('DOMContentLoaded', () => {
const expand = '<button class="expand">Expand</button>';
$el.insertAdjacentHTML('beforeend', copy);
if ($el.firstElementChild.scrollHeight > 320) {
if ($el.firstElementChild.scrollHeight > 480 && $el.firstElementChild.clientHeight <= 480) {
$el.insertAdjacentHTML('beforeend', expand);
}