Refactor multiple pages to remove unnecessary labels and improve UI consistency
Updated various components including AssistantPage, AssistantWorkflowPage, ComponentsModelsPage, and others by removing redundant label elements and enhancing the header structure. This change streamlines the layout and improves the overall user experience across the application.
This commit is contained in:
@@ -273,8 +273,7 @@ export function AssistantPage() {
|
||||
<div className="mx-auto flex w-full max-w-[1180px] flex-col gap-8">
|
||||
<div className="flex flex-col items-start justify-between gap-5 sm:flex-row sm:gap-6">
|
||||
<div>
|
||||
<div className="caption-label text-muted-soft">助手管理</div>
|
||||
<h1 className="font-display display-lg mt-3 text-ink">助手列表</h1>
|
||||
<h1 className="font-display display-lg text-ink">助手列表</h1>
|
||||
<p className="mt-3 max-w-2xl text-[15px] leading-7 text-muted-foreground">
|
||||
管理已有的视频助手,支持提示词、工作流、Dify 和 FastGPT 类型。
|
||||
</p>
|
||||
@@ -478,8 +477,7 @@ export function AssistantPage() {
|
||||
<div className="mx-auto flex w-full max-w-[920px] flex-col gap-8">
|
||||
<div className="flex items-start justify-between gap-6">
|
||||
<div>
|
||||
<div className="caption-label text-muted-soft">新建助手</div>
|
||||
<h1 className="font-display display-lg mt-3 text-ink">创建助手</h1>
|
||||
<h1 className="font-display display-lg text-ink">创建助手</h1>
|
||||
<p className="mt-3 max-w-2xl text-[15px] leading-7 text-muted-foreground">
|
||||
先为助手取个名字,再选择构建方式。不同方式将进入不同的构建流程。
|
||||
</p>
|
||||
@@ -590,18 +588,11 @@ export function AssistantPage() {
|
||||
}
|
||||
|
||||
if (view === "placeholder") {
|
||||
const option = assistantTypeOptions.find(
|
||||
(item) => item.type === draftType,
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="mx-auto flex w-full max-w-[1180px] flex-col gap-6">
|
||||
<div className="flex items-start justify-between gap-6">
|
||||
<div>
|
||||
<div className="caption-label text-muted-soft">
|
||||
{option?.label ?? "新建助手"}
|
||||
</div>
|
||||
<h1 className="font-display display-lg mt-3 text-ink">
|
||||
<h1 className="font-display display-lg text-ink">
|
||||
{draftName.trim() || "创建助手"}
|
||||
</h1>
|
||||
<p className="mt-3 max-w-2xl text-[15px] leading-7 text-muted-foreground">
|
||||
@@ -657,8 +648,7 @@ export function AssistantPage() {
|
||||
<div className="mx-auto flex w-full max-w-[1180px] flex-col gap-6">
|
||||
<div className="flex items-start justify-between gap-6">
|
||||
<div>
|
||||
<div className="caption-label text-muted-soft">提示词模式</div>
|
||||
<h1 className="font-display display-lg mt-3 text-ink">
|
||||
<h1 className="font-display display-lg text-ink">
|
||||
创建助手
|
||||
</h1>
|
||||
<p className="mt-3 text-[15px] text-muted-foreground">
|
||||
|
||||
Reference in New Issue
Block a user