From ce13bdbb0249a3fb60649b3cfb662838f77f8c86 Mon Sep 17 00:00:00 2001 From: kdletters Date: Thu, 11 Jun 2026 04:54:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=94=B6=E5=8F=A3=E6=B5=85?= =?UTF-8?q?=E8=89=B2=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将统一创作页与多个浅色工作台返回入口切换为 PlatformBackActionButton 按页面保留 compact 与 regular 返回尺寸及禁用态 清理冗余 ArrowLeft 引用并完成对应页面定向验证 --- .../BarkBattleConfigEditor.tsx | 14 +++++--------- .../creative-agent/CreativeAgentWorkspace.tsx | 16 +++++----------- .../BabyObjectMatchWorkspace.tsx | 14 +++++--------- .../rpg-entry/RpgEntryWorldDetailView.tsx | 14 +++++--------- .../unified-creation/UnifiedCreationPage.tsx | 14 ++++---------- .../workspaces/JumpHopCreationWorkspace.tsx | 16 +++++++--------- .../workspaces/PuzzleCreationWorkspace.tsx | 13 ++++--------- .../workspaces/WoodenFishCreationWorkspace.tsx | 16 +++++++--------- .../VisualNovelAgentWorkspace.tsx | 14 +++++--------- 9 files changed, 47 insertions(+), 84 deletions(-) diff --git a/src/components/bark-battle-creation/BarkBattleConfigEditor.tsx b/src/components/bark-battle-creation/BarkBattleConfigEditor.tsx index d5904b33..e22e2b69 100644 --- a/src/components/bark-battle-creation/BarkBattleConfigEditor.tsx +++ b/src/components/bark-battle-creation/BarkBattleConfigEditor.tsx @@ -1,10 +1,11 @@ -import { ArrowLeft, Loader2, Play } from 'lucide-react'; +import { Loader2, Play } from 'lucide-react'; import { useEffect, useMemo, useState } from 'react'; import type { BarkBattleConfigEditorPayload } from '../../../packages/shared/src/contracts/barkBattle'; import type { BarkBattleDifficultyPreset } from '../../../packages/shared/src/contracts/barkBattle'; import { buildBarkBattleDefaultOnomatopoeia } from '../../games/bark-battle/application/BarkBattleConfig'; import { PlatformActionButton } from '../common/PlatformActionButton'; +import { PlatformBackActionButton } from '../common/PlatformBackActionButton'; import { PlatformFieldLabel } from '../common/PlatformFieldLabel'; import { PlatformPillBadge } from '../common/PlatformPillBadge'; import { PlatformStatusMessage } from '../common/PlatformStatusMessage'; @@ -151,16 +152,11 @@ export function BarkBattleConfigEditor({ > {showBackButton && onBack ? (
- - - 返回 - + className="px-3" + />
) : null} diff --git a/src/components/creative-agent/CreativeAgentWorkspace.tsx b/src/components/creative-agent/CreativeAgentWorkspace.tsx index 3cf7b819..0ea79e56 100644 --- a/src/components/creative-agent/CreativeAgentWorkspace.tsx +++ b/src/components/creative-agent/CreativeAgentWorkspace.tsx @@ -1,4 +1,4 @@ -import { ArrowLeft, CheckCircle2, Puzzle } from 'lucide-react'; +import { CheckCircle2, Puzzle } from 'lucide-react'; import { useEffect, useMemo, useState } from 'react'; import type { @@ -11,6 +11,7 @@ import type { PuzzleCreativeTemplateSelection, } from '../../../packages/shared/src/contracts/puzzleCreativeTemplate'; import { PlatformActionButton } from '../common/PlatformActionButton'; +import { PlatformBackActionButton } from '../common/PlatformBackActionButton'; import { PlatformEmptyState } from '../common/PlatformEmptyState'; import { PlatformIconBadge } from '../common/PlatformIconBadge'; import { PlatformMediaFrame } from '../common/PlatformMediaFrame'; @@ -149,18 +150,11 @@ export function CreativeAgentWorkspace({
{showBackButton ? ( - - - - 返回 - - + className="px-3" + /> ) : (