summaryrefslogtreecommitdiff
path: root/height.js
diff options
context:
space:
mode:
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);