diff options
| author | Magdalena Szweda <hi@roughlynamed.net> | 2026-10-04 10:45:22 +0200 |
|---|---|---|
| committer | Magdalena Szweda <hi@roughlynamed.net> | 2026-10-06 14:09:45 +0200 |
| commit | 44f4bb35b0057eca28ea7d7d93d765b9608d607d (patch) | |
| tree | 41fffdec2e895d22e609f371ac9d171cba3f17c5 /height.js | |
| parent | 9a0b9ef98d47951b00b84da7ed62820c0d00de89 (diff) | |
lotta fucking stuff
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); |
