[Hotfix] Fix issues with the 4.4 page

- Fix issues with 4.4 page (caused by a common release template change)
  - Fixes credit names to be the same size for every name
- Remove superfluous debugger call in the 4.5 release page
This commit is contained in:
Adam Scott
2025-09-18 09:58:13 -04:00
parent d66c9f9b03
commit d0826c9b31
3 changed files with 26 additions and 10 deletions

View File

@@ -1623,7 +1623,8 @@ $donate-robot-size: 500px;
margin-bottom: calc(var(--card-padding) * 2);
}
.section-title h3 {
.section-title h3,
.section-title h4 {
position: relative;
background: var(--color-top)
linear-gradient(to bottom, var(--color-top), var(--color-bottom));

View File

@@ -63,24 +63,42 @@ for (const releaseCardContainer of releaseCardContainers) {
});
}
releaseCardContainer.classList.add("overflow-y-hidden");
// releaseCardContainer.classList.add("overflow-y-hidden");
}
const sectionContainers = Array.from(
document.querySelectorAll(".section-title"),
document.querySelectorAll(".section:has(.section-title)"),
);
for (const sectionContainer of sectionContainers) {
elements.push({
element: sectionContainer.querySelector("h3"),
container: sectionContainer,
element: sectionContainer.querySelector(
".section-title h3, .section-title h4",
),
container: sectionContainer.querySelector(".section-title"),
isLastOfType: true,
});
sectionContainer.classList.add("overflow-y-hidden");
const sectionLinks = sectionContainer.querySelector(".section-links");
if (sectionLinks == null) {
continue;
}
elements.push({
element: sectionLinks,
container: sectionContainer.querySelector(".section-title"),
isLastOfType: true,
});
// sectionContainer.classList.add("overflow-y-hidden");
}
elements.sort((a, b) => {
const aRect = a.element.getBoundingClientRect();
const bRect = b.element.getBoundingClientRect();
return aRect.top - bRect.top;
});
for (const element of elements) {
if (element.element.getBoundingClientRect().top < windowHeight) {
if (element.isLastOfType) {
element.container.classList.remove("overflow-y-hidden");
// element.container.classList.remove("overflow-y-hidden");
}
continue;
}

View File

@@ -110,9 +110,6 @@ elements.sort((a, b) => {
return aRect.top - bRect.top;
});
for (const element of elements) {
if (element.element == null) {
debugger;
}
if (element.element.getBoundingClientRect().top < windowHeight) {
if (element.isLastOfType) {
// element.container.classList.remove("overflow-y-hidden");