Skip to content

Commit f02395f

Browse files
fix(rank): 文档标题加 min-w-0,长标题省略而非撑破弹窗
doc-title span 是 flex 子项,truncate 需配 min-w-0 才生效(flex 子项默认 min-width:auto 不收缩)。否则超长标题横向溢出、把外链图标挤出、撑破 max-w-lg 弹窗。 列表加滚动后长列表可达,此问题更易触发。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 63bfff0 commit f02395f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/rank/ContributorRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export function ContributorRow({
193193
data-umami-event-doc={doc.title}
194194
data-umami-event-user={user.name}
195195
>
196-
<span className="font-mono text-sm text-[#111111] dark:text-neutral-200 group-hover/link:underline decoration-2 decoration-[#CC0000] underline-offset-4 truncate pr-4">
196+
<span className="font-mono text-sm text-[#111111] dark:text-neutral-200 group-hover/link:underline decoration-2 decoration-[#CC0000] underline-offset-4 truncate pr-4 min-w-0">
197197
{doc.title}
198198
</span>
199199
<ExternalLink className="h-4 w-4 text-[#111111]/50 dark:text-neutral-400 group-hover/link:text-[#CC0000] transition-colors shrink-0" />

0 commit comments

Comments
 (0)