feat: rename my modes tab and soften banner effect
This commit is contained in:
parent
ff4f48bffc
commit
44b2148bef
@ -1028,7 +1028,7 @@ export function AgentWorkflowSettingsClient({
|
|||||||
<div>
|
<div>
|
||||||
<CardTitle className="text-base">顶部分类页</CardTitle>
|
<CardTitle className="text-base">顶部分类页</CardTitle>
|
||||||
<CardDescription>
|
<CardDescription>
|
||||||
“我的作品”固定保留,这里维护其余可显示的生图模式分类页与三级分类树。
|
“我的模式”固定保留,这里维护其余可显示的生图模式分类页与三级分类树。
|
||||||
</CardDescription>
|
</CardDescription>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -2341,7 +2341,7 @@ export function AgentWorkflowSettingsClient({
|
|||||||
<Badge variant="outline" className="font-mono">
|
<Badge variant="outline" className="font-mono">
|
||||||
{totalPresetLibraryNodeCount} 树节点
|
{totalPresetLibraryNodeCount} 树节点
|
||||||
</Badge>
|
</Badge>
|
||||||
<Badge variant="secondary">“我的作品”固定保留,不在此处编辑</Badge>
|
<Badge variant="secondary">“我的模式”固定保留,不在此处编辑</Badge>
|
||||||
</div>
|
</div>
|
||||||
<Button onClick={handleAddPresetLibrarySection} size="sm">
|
<Button onClick={handleAddPresetLibrarySection} size="sm">
|
||||||
<Plus className="mr-2 h-4 w-4" />
|
<Plus className="mr-2 h-4 w-4" />
|
||||||
|
|||||||
@ -95,7 +95,7 @@ export function AgentPresetPanelDarkV2({
|
|||||||
}));
|
}));
|
||||||
const myWorksTab = {
|
const myWorksTab = {
|
||||||
id: AGENT_PRESET_LIBRARY_MY_WORKS_ID,
|
id: AGENT_PRESET_LIBRARY_MY_WORKS_ID,
|
||||||
label: "我的作品",
|
label: "我的模式",
|
||||||
icon: FolderOpen,
|
icon: FolderOpen,
|
||||||
isMyWorks: true,
|
isMyWorks: true,
|
||||||
};
|
};
|
||||||
@ -104,7 +104,7 @@ export function AgentPresetPanelDarkV2({
|
|||||||
return [myWorksTab];
|
return [myWorksTab];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [dynamicTabs[0], myWorksTab, ...dynamicTabs.slice(1)];
|
return [...dynamicTabs, myWorksTab];
|
||||||
}, [presetLibrarySections]);
|
}, [presetLibrarySections]);
|
||||||
const activeSection = useMemo(
|
const activeSection = useMemo(
|
||||||
() => presetLibrarySections.find((section) => section.id === activeTab) || null,
|
() => presetLibrarySections.find((section) => section.id === activeTab) || null,
|
||||||
@ -248,7 +248,7 @@ export function AgentPresetPanelDarkV2({
|
|||||||
|
|
||||||
// 获取当前标签标题
|
// 获取当前标签标题
|
||||||
const getCurrentTitle = () => {
|
const getCurrentTitle = () => {
|
||||||
if (isMyWorksTab) return "我的作品";
|
if (isMyWorksTab) return "我的模式";
|
||||||
return activeSection?.label || "生图模式";
|
return activeSection?.label || "生图模式";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ export function AgentWorkflowShowcaseBanner({
|
|||||||
animate={{ opacity: 1, y: 0 }}
|
animate={{ opacity: 1, y: 0 }}
|
||||||
transition={{ duration: 0.6 }}
|
transition={{ duration: 0.6 }}
|
||||||
>
|
>
|
||||||
<AgentWorkflowParticleScatter className="top-0 h-full opacity-95" />
|
<AgentWorkflowParticleScatter className="top-0 h-full opacity-50" />
|
||||||
<div className="pointer-events-none absolute inset-x-0 bottom-0 h-[34%] bg-gradient-to-t from-black via-black/28 to-transparent" />
|
<div className="pointer-events-none absolute inset-x-0 bottom-0 h-[34%] bg-gradient-to-t from-black via-black/28 to-transparent" />
|
||||||
|
|
||||||
<div className="relative z-10">
|
<div className="relative z-10">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user