feat: 问卷和文档添加菜单路径及Tab信息,方便用户定位功能位置
This commit is contained in:
@@ -103,8 +103,14 @@ export default function SurveyModal({ open, onClose }: { open: boolean; onClose:
|
||||
className="w-full flex items-center gap-2 px-4 py-2.5 hover:bg-gray-50 text-left"
|
||||
>
|
||||
{isExpanded ? <ChevronDown className="w-4 h-4 text-gray-400 shrink-0" /> : <ChevronRight className="w-4 h-4 text-gray-400 shrink-0" />}
|
||||
<span className="text-sm font-medium text-gray-700">{page.id}. {page.name}</span>
|
||||
<span className="ml-auto text-xs text-gray-400">{page.features.length} 项{pageRated > 0 && ` · 已评 ${pageRated}`}</span>
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="text-sm font-medium text-gray-700">{page.id}. {page.name}</div>
|
||||
<div className="flex items-center gap-1.5 mt-0.5">
|
||||
<span className="text-xs text-gray-400 truncate">📍 {page.menu}</span>
|
||||
{page.tab && <span className="text-xs text-primary/70 truncate">| Tab: {page.tab}</span>}
|
||||
</div>
|
||||
</div>
|
||||
<span className="ml-auto text-xs text-gray-400 shrink-0">{page.features.length} 项{pageRated > 0 && ` · 已评 ${pageRated}`}</span>
|
||||
</button>
|
||||
{isExpanded && (
|
||||
<div className="px-4 pb-3 space-y-2">
|
||||
|
||||
Reference in New Issue
Block a user