From 0d98bd05cc3ff3d0c00ef90b39486b29858b4577 Mon Sep 17 00:00:00 2001 From: Suzumiya Date: Fri, 11 Sep 2026 23:33:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E6=8E=89=E3=80=8C=E6=89=80=E6=9C=89?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E3=80=8D=E9=A1=B5=E7=9A=84=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=E7=BD=91=E6=A0=BC=E6=A0=B7=E5=BC=8F=EF=BC=9A=E5=AE=83=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E8=B5=B0=E7=94=BB=E6=9C=AC=E5=9C=BA=E6=99=AF=EF=BC=8C?= =?UTF-8?q?=E8=BF=99=E5=85=AD=E6=9D=A1=E6=B2=A1=E6=9C=89=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=96=B9=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除 .game-resource-all-resources-host:整页 absoulte 层与自己的底纹(原本是为了盖住画本场景底纹、并躲开画布容器的滚动处理) - 删除 .game-resource-all-scroll:分组网格的自身滚动容器 - 删除 .game-resource-all-section:按栏目分组的分节卡片(边框 / 圆角 / 半透明底) - 删除 .game-resource-all-grid:repeat(auto-fill, 180px) 卡片网格 - 删除 .game-resource-all-card:网格里的卡片占位格 - 删除 .game-resource-all-grid .game-resource-card:只读页的光标与 touch-action 覆盖(展开态已可拖,卡片要保留画布那套 touch-action: none) - 不留任何 all 专属替代规则:展开态的外观全部由既有的 .game-resource-book-scene-card / .game-resource-card 与共享规则给出("零新增 CSS"是本次红线) --- apps/ai-game-creator-shell/src/styles.css | 59 ----------------------- 1 file changed, 59 deletions(-) diff --git a/apps/ai-game-creator-shell/src/styles.css b/apps/ai-game-creator-shell/src/styles.css index 245af72b6..d4fae72f1 100644 --- a/apps/ai-game-creator-shell/src/styles.css +++ b/apps/ai-game-creator-shell/src/styles.css @@ -6623,65 +6623,6 @@ iframe.preview-frame { font-size: 12px; } -/* - * 「所有资源」页。 - * - * 资源总览第 0 张卡打开的汇总页:左侧沿用栏目大纲,正文按栏目分组的滚动卡片网格。 - * 整页自成一层(`z-index: 21`):栏目态的画本场景自带一层不透明底纹(`z-index: 20`), - * 只在 `z-index: auto` 上铺会被它盖住;同时它不落在 `.game-resource-canvas` 里, - * 那层挂着画布平移/框选的指针与滚轮处理器,会把这里的滚动吃掉。 - * - * 卡片本体仍由栏目页同一颗卡片渲染器产出(尺寸取画布默认卡宽高), - * 因此这一页只补齐容器与网格,不新增卡片样式。 - */ -.game-resource-all-resources-host { - position: absolute; - z-index: 21; - inset: 0; - padding: 12px; - overflow: hidden; - background-color: #fffdfa; - background-image: radial-gradient(#eaded8 0.8px, transparent 0.8px); - background-size: 18px 18px; -} - -.game-resource-all-scroll { - display: grid; - gap: 14px; - align-content: start; - min-height: 0; - padding: 2px; - overflow: auto; - overscroll-behavior: contain; -} - -.game-resource-all-section { - display: grid; - gap: 10px; - padding: 12px; - border: 1px solid #ecdfd8; - border-radius: 12px; - background: rgb(255 253 250 / 82%); -} - -.game-resource-all-grid { - display: grid; - grid-template-columns: repeat(auto-fill, 180px); - gap: 14px; -} - -.game-resource-all-card { - position: relative; - display: block; -} - -/* 只浏览的页面不接拖拽:光标如实反映「点选 / 播放」,并且把纵向触摸手势交还给滚动容器 - (`.game-resource-card` 常态是 `touch-action: none`,那是画布拖卡需要的)。 */ -.game-resource-all-grid .game-resource-card { - cursor: pointer; - touch-action: pan-y; -} - .game-resource-section-stack { display: contents; }