From 63bfff0f57434acec5c66c71ada590e0f160ba9d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 23:28:53 +0000 Subject: [PATCH 1/2] =?UTF-8?q?fix(rank):=20=E8=B4=A1=E7=8C=AE=E8=80=85?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=20Document=20History=20=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=8A=A0=E6=BB=9A=E5=8A=A8=EF=BC=8C=E4=BF=AE=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E6=BA=A2=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dialog.Content 的 className 同时写了 `grid` 和 `flex col`:grid/flex 都设 display (Tailwind 级联里 grid 胜出),且 `col` 不是合法 class,flex 列容器从未生效, Document History 列表无法滚动、内容溢出弹窗。 改为 `flex flex-col`,并把滚动子容器的 `min-h-[150px]` 换成 `min-h-0` (flex 子项默认 min-height:auto 会阻止收缩,min-h-0 才能让 overflow-y-auto 生效)。 Closes #358 Co-Authored-By: Claude Opus 4.8 (1M context) --- app/components/rank/ContributorRow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/rank/ContributorRow.tsx b/app/components/rank/ContributorRow.tsx index ecc9e358..e367b3cf 100644 --- a/app/components/rank/ContributorRow.tsx +++ b/app/components/rank/ContributorRow.tsx @@ -67,7 +67,7 @@ export function ContributorRow({ - + {/* 弹窗核心内容:左侧头像,右侧个人基础信息 */}
@@ -164,7 +164,7 @@ export function ContributorRow({
{/* 文章贡献历史列表展示 */} -
+

Document History

From f02395f8a88a7d5a9252eebe31deceba33fe8179 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 27 Jun 2026 23:46:42 +0000 Subject: [PATCH 2/2] =?UTF-8?q?fix(rank):=20=E6=96=87=E6=A1=A3=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E5=8A=A0=20min-w-0=EF=BC=8C=E9=95=BF=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E7=9C=81=E7=95=A5=E8=80=8C=E9=9D=9E=E6=92=91=E7=A0=B4?= =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit doc-title span 是 flex 子项,truncate 需配 min-w-0 才生效(flex 子项默认 min-width:auto 不收缩)。否则超长标题横向溢出、把外链图标挤出、撑破 max-w-lg 弹窗。 列表加滚动后长列表可达,此问题更易触发。 Co-Authored-By: Claude Opus 4.8 (1M context) --- app/components/rank/ContributorRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/rank/ContributorRow.tsx b/app/components/rank/ContributorRow.tsx index e367b3cf..a93822ec 100644 --- a/app/components/rank/ContributorRow.tsx +++ b/app/components/rank/ContributorRow.tsx @@ -193,7 +193,7 @@ export function ContributorRow({ data-umami-event-doc={doc.title} data-umami-event-user={user.name} > - + {doc.title}