0.3.1 UI修复

This commit is contained in:
liaibo
2026-01-18 19:01:31 +08:00
parent 90a38b48cf
commit 8a5b915002
86 changed files with 1160 additions and 2867 deletions
+12 -6
View File
@@ -31,16 +31,19 @@ export function Breadcrumb({ documents }: BreadcrumbProps) {
return (
<div className="flex flex-1 items-center justify-between">
<nav className="flex items-center text-sm text-gray-500">
<nav className="flex items-center text-sm text-wolai-text-secondary">
{displayPath.map((node, index) => {
const isLast = index === displayPath.length - 1;
return (
<span key={node.id} className="flex items-center">
{index > 0 && <ChevronRight className="mx-1 h-4 w-4 text-gray-400" />}
{isLast ? (
<span className="font-medium text-gray-900">{node.title || "无标题"}</span>
<span className="font-medium text-wolai-text-primary">{node.title || "无标题"}</span>
) : (
<Link href={`/documents/${node.id}`} className="wolai-blue">
<Link
href={`/documents/${node.id}`}
className="hover:bg-wolai-bg-hover hover:text-wolai-text-primary px-1.5 py-0.5 rounded cursor-pointer transition-colors"
>
{node.title || "无标题"}
</Link>
)}
@@ -48,14 +51,17 @@ export function Breadcrumb({ documents }: BreadcrumbProps) {
);
})}
</nav>
<div className="flex items-center gap-2 text-gray-500">
<button type="button" className="wolai-hover rounded-full px-3 py-1 text-sm">
<div className="flex items-center gap-2 text-wolai-text-secondary">
<button
type="button"
className="hover:bg-wolai-bg-hover hover:text-wolai-text-primary rounded-full px-3 py-1 text-sm transition-colors"
>
<Star className="mr-1 inline h-4 w-4" />
</button>
<button
type="button"
className="wolai-hover rounded-full p-2 text-gray-500"
className="hover:bg-wolai-bg-hover hover:text-wolai-text-primary rounded-full p-2 transition-colors"
onClick={toggleInspector}
aria-label={showInspector ? "隐藏页面选项" : "显示页面选项"}
title={showInspector ? "隐藏页面选项" : "显示页面选项"}