updata:icon替换

This commit is contained in:
xiaozhu
2026-09-02 10:10:41 +08:00
committed by tao.chen
parent 3a5cc12782
commit af2f035d03
17 changed files with 159 additions and 304 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
import Icon from "./Icon";
import { ChevronRight, LayoutGrid } from "lucide-react";
import type { AuthUser, AuthWorkspace } from "../../context/AuthContext";
type TopbarProps = {
@@ -38,7 +38,7 @@ export function Topbar({
className="grid h-[31px] w-[31px] rotate-180 cursor-pointer place-items-center rounded-[7px] border border-transparent bg-white text-[#7b8999] hover:border-[#b9c9da] hover:bg-[#f7faff]"
type="button"
>
<Icon name="chevron" size={19} />
<ChevronRight size={19} />
</button>
<div>
<span className="text-[10px] font-[650] uppercase tracking-[0.08em] text-[#94a2b3]">
@@ -67,7 +67,7 @@ export function Topbar({
onClick={() => onSetWorkspaceMenuOpen(!workspaceMenuOpen)}
>
<span className="grid size-[30px] place-items-center rounded-[7px] bg-gradient-to-br from-[#23aa73] to-[#158d5d] text-white">
<Icon name="workspace" size={18} />
<LayoutGrid size={18} />
</span>
<span className="flex min-w-[155px] max-xl:min-w-[130px] flex-col items-start">
<small className="text-[10px] text-[#97a3b1]"> Workspace</small>
@@ -75,7 +75,7 @@ export function Topbar({
{currentWorkspace.workspace_name}
</strong>
</span>
<Icon name="chevron" size={15} />
<ChevronRight size={15} />
</button>
{workspaceMenuOpen && (
<div className="absolute top-[calc(100%+7px)] right-0 z-50 w-[260px] rounded-lg border border-[#dce5ed] bg-white p-1.5 shadow-[0_14px_38px_rgb(17_43_70_/_18%)]">
@@ -96,7 +96,7 @@ export function Topbar({
onSetWorkspaceMenuOpen(false);
}}
>
<Icon name="workspace" size={15} />
<LayoutGrid size={15} />
<span className="flex min-w-0 flex-col gap-0.5">
<strong className="truncate text-[11px] text-[#243a50]">
{workspace.workspace_name}