From 4eb9212a23eafc57606c9150f2a52c5e45b149ba Mon Sep 17 00:00:00 2001 From: tobiichi3227 <86729076+tobiichi3227@users.noreply.github.com> Date: Thu, 20 Mar 2025 16:36:55 +0800 Subject: [PATCH] fix: align generator item (#69) * fix: align generator item Close #26 * Chore: remove hack --- scripts.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts.js b/scripts.js index fbd0d42..bf35e97 100644 --- a/scripts.js +++ b/scripts.js @@ -60,3 +60,8 @@ darkModeIcon.onclick = () => { darkModeIcon.classList.toggle("bx-sun"); document.body.classList.toggle("dark-mode"); }; + +// temporary +let max_height = -1; +document.querySelectorAll('.card-body').forEach(el => max_height = Math.max(max_height, el.offsetHeight)); +document.querySelectorAll('.card-body').forEach(el => el.style.height = `${max_height}px`);