fix: align generator item

Close #26
This commit is contained in:
tobiichi3227
2025-03-20 16:28:16 +08:00
committed by GitHub
parent ea18eb8057
commit 05378cc8be

View File

@@ -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`);