diff options
Diffstat (limited to 'height.js')
| -rw-r--r-- | height.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,7 +1,7 @@ -const scrobbles = document.getElementById('recent-scrobbles'); -const publications = document.getElementById('recent-publications'); -const changelog = document.getElementById('recent-now'); -const column = document.querySelector('.recent-column'); +const scrobbles = document.getElementById("recent-scrobbles"); +const publications = document.getElementById("recent-publications"); +const changelog = document.getElementById("recent-now"); +const column = document.querySelector(".recent-column"); let userResized = false; let lastSetHeight = null; @@ -10,7 +10,7 @@ new ResizeObserver(([entry]) => { const observedHeight = Math.round(entry.contentRect.height); if (lastSetHeight !== null && observedHeight !== lastSetHeight) { userResized = true; - column.style.height = 'auto'; // NEW — release the lock so flow can push content down + column.style.height = "auto"; // NEW — release the lock so flow can push content down } }).observe(changelog); |
