diff --git a/apps/ai-game-creator-shell/src/features/platform-fork/forkPageStyles.ts b/apps/ai-game-creator-shell/src/features/platform-fork/forkPageStyles.ts index 8edc6b6a2..16e4ff8b9 100644 --- a/apps/ai-game-creator-shell/src/features/platform-fork/forkPageStyles.ts +++ b/apps/ai-game-creator-shell/src/features/platform-fork/forkPageStyles.ts @@ -17,8 +17,15 @@ export const FORK_PAGE_COLUMN = 'mx-auto w-[min(860px,calc(100vw-124px))] max-[980px]:w-[min(100%,calc(100vw-64px))] max-[760px]:w-[min(100%,calc(100vw-40px))]'; -/** 页面根:纵向节奏 24px,底部留白 32px。 */ -export const FORK_PAGE_ROOT = 'fork-page grid content-start gap-6 pb-8'; +/** + * 页面根:顶部 80px 留白(与首页 `pt-20` 同值,给左上「正在运行的项目」浮层与顶边留出呼吸空间) + * + 纵向节奏 24px + 底部 32px。 + * + * 留白加在**内容层**(页面根),不加在滚动容器 `.launcher-main` 上:滚动容器只负责滚, + * 页面自己决定与顶边的距离,滚动时页头跟着内容走(这是长页面的正常语义)。 + */ +export const FORK_PAGE_ROOT = + 'fork-page grid content-start gap-6 pt-20 pb-8 max-[760px]:pt-16'; /** 区块内部:标题 / 说明 / 卡片之间 12px。 */ export const FORK_SECTION = 'grid gap-3'; diff --git a/apps/ai-game-creator-shell/src/view/co-creation/index.tsx b/apps/ai-game-creator-shell/src/view/co-creation/index.tsx index c9e20dc57..3efe9a344 100644 --- a/apps/ai-game-creator-shell/src/view/co-creation/index.tsx +++ b/apps/ai-game-creator-shell/src/view/co-creation/index.tsx @@ -1,7 +1,8 @@ /** * 「共创」页:列出支持共创(可 Fork)的平台作品。 * - * 对外口径只有一句:**Fork = 把整个工程复制一份到你的项目里继续改造(与 git fork 同理)**。 + * 对外口径只有一句(内部说明:设计意图与 git fork 同源,该类比不进用户可见文案): + * **把平台上的作品整个工程复制到你的项目里继续改造。** * 页面只有一条入口:卡片上的 Fork 按钮 → Fork 工程确认页(授权校验与工程同步都在那一页完成)。 * * 这里**没有**「直接 Fork 指定作品」输入块:深链 `genarrative://fork?gameId=…` 由 launcher 直接 @@ -124,14 +125,9 @@ export default function CoCreationView({ onOpenConfirm }: CoCreationViewProps) { return (
- 把平台上的作品整个工程复制到你的项目里继续改造(像 git fork)。 -
-+ 把平台上的作品整个工程复制到你的项目里继续改造。 +