From 05378cc8be86cdfb2750ff11947d105a209d8869 Mon Sep 17 00:00:00 2001 From: tobiichi3227 <86729076+tobiichi3227@users.noreply.github.com> Date: Thu, 20 Mar 2025 16:28:16 +0800 Subject: [PATCH 1/2] fix: align generator item Close #26 --- scripts.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts.js b/scripts.js index fbd0d42..2c2c6d1 100644 --- a/scripts.js +++ b/scripts.js @@ -60,3 +60,8 @@ darkModeIcon.onclick = () => { darkModeIcon.classList.toggle("bx-sun"); document.body.classList.toggle("dark-mode"); }; + +// HACK +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`); -- 2.49.1 From 110cf63cf07d5239138a404c0846095fe80ebe54 Mon Sep 17 00:00:00 2001 From: tobiichi3227 <86729076+tobiichi3227@users.noreply.github.com> Date: Thu, 20 Mar 2025 16:36:18 +0800 Subject: [PATCH 2/2] Chore: remove hack --- scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts.js b/scripts.js index 2c2c6d1..bf35e97 100644 --- a/scripts.js +++ b/scripts.js @@ -61,7 +61,7 @@ darkModeIcon.onclick = () => { document.body.classList.toggle("dark-mode"); }; -// HACK +// 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`); -- 2.49.1