From ea3a4dbea48b5c80aecef07610b9b414b7335f42 Mon Sep 17 00:00:00 2001 From: peijunlei Date: Mon, 7 Sep 2026 19:58:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(css):=20=E6=B7=BB=E5=8A=A0=E5=85=B3?= =?UTF-8?q?=E4=BA=8E=E9=A1=B5=E8=8D=A3=E8=AA=89=E5=88=97=E8=A1=A8=E5=B1=95?= =?UTF-8?q?=E5=BC=80=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增样式以支持荣誉列表在展开状态下显示最多8条项 - 实现滚动功能以处理超出项的显示 --- public/themes/dist_static/static/css/about.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/themes/dist_static/static/css/about.css b/public/themes/dist_static/static/css/about.css index 72213f9..daf4a50 100644 --- a/public/themes/dist_static/static/css/about.css +++ b/public/themes/dist_static/static/css/about.css @@ -567,6 +567,13 @@ .ab-honors__list:not(.is-expanded) .ab-honors__item:nth-child(n+6) { display: none; } +/* 展开后约显示 8 条,超出滚动(单条 ≈ 上下 padding 2.5rem + 行高 + 底边) */ +.ab-honors__list.is-expanded { + max-height: calc(8 * (5rem + var(--font-32) + 1px)); + overflow-y: auto; + overscroll-behavior: contain; + scrollbar-width: thin; +} .ab-honors__item { position: relative; display: flex;