summaryrefslogtreecommitdiff
path: root/height.js
diff options
context:
space:
mode:
authorMagdalena Szweda <hi@roughlynamed.net>2026-10-04 10:45:22 +0200
committerMagdalena Szweda <hi@roughlynamed.net>2026-10-06 14:09:45 +0200
commit44f4bb35b0057eca28ea7d7d93d765b9608d607d (patch)
tree41fffdec2e895d22e609f371ac9d171cba3f17c5 /height.js
parent9a0b9ef98d47951b00b84da7ed62820c0d00de89 (diff)
lotta fucking stuff
Diffstat (limited to 'height.js')
-rw-r--r--height.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/height.js b/height.js
index 626f362..629139c 100644
--- a/height.js
+++ b/height.js
@@ -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);