Browse Source

feat(about): 调整荣誉资质交互

master
peijunlei 2 weeks ago
parent
commit
92790630db
  1. 2
      public/themes/dist_static/static/css/about.css
  2. 2
      public/themes/dist_static/static/js/about.js

2
public/themes/dist_static/static/css/about.css

@ -586,6 +586,8 @@
max-height: calc(8 * (5rem + var(--font-32) + 1px));
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
padding-right: 0.75rem;
scrollbar-width: thin;
}
.ab-honors__item {

2
public/themes/dist_static/static/js/about.js

@ -72,6 +72,8 @@ function initHonorsToggle() {
const expanded = list.classList.toggle("is-expanded");
btn.classList.toggle("is-expanded", expanded);
btn.querySelector("span").textContent = expanded ? t("about.collapse") : t("about.expand_more");
if (expanded) list.setAttribute("data-lenis-prevent", "");
else list.removeAttribute("data-lenis-prevent");
});
}
function initMembersCarousel() {

Loading…
Cancel
Save