From 6d2c275d325c3d2645f91583b3d72f0570ad92f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Mon, 31 Aug 2026 18:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A1=B9=E7=9B=AE=E9=A1=B5?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E9=AB=98=E5=BA=A6=20(#228)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 项目页父级改为纵向 flex 并填满可用高度 项目列表容器与表格占满剩余空间 before: ![shotmd-1788154666.jpg](/attachments/3a02fdae-22b1-49d7-9f20-6739fddb88b9) ![shotmd-1788143842.png](/attachments/7522543f-7f58-46f1-aa72-ee5d13d2819f) after: ![shotmd-1788154694.jpg](/attachments/cd3fb3ea-fd55-4343-9e11-210af6fc767a) ![shotmd-1788155214.jpg](/attachments/2d39b273-57be-427e-9e08-2ffe994531fb) --------- Co-authored-by: 段舒康 Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/228 Co-authored-by: 王德宇 Co-committed-by: 王德宇 --- apps/ai-game-creator-shell/src/styles.css | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/ai-game-creator-shell/src/styles.css b/apps/ai-game-creator-shell/src/styles.css index c733e6704..250193272 100644 --- a/apps/ai-game-creator-shell/src/styles.css +++ b/apps/ai-game-creator-shell/src/styles.css @@ -821,11 +821,12 @@ textarea { } .launcher-projects-page { - align-content: start; - grid-template-rows: auto minmax(0, 1fr); + display: flex; + flex-direction: column; gap: 18px; width: calc(100vw - var(--launcher-sidebar-width)); max-width: none; + flex: 1 1 auto; height: 100dvh; min-height: 0; margin: 0; @@ -834,6 +835,8 @@ textarea { } .launcher-main:has(.launcher-projects-page) { + display: flex; + flex-direction: column; height: 100dvh; min-height: 0; padding-bottom: 0; @@ -1005,8 +1008,9 @@ textarea { } .launcher-project-list-shell { - display: grid; - grid-template-rows: 42px minmax(0, 1fr); + display: flex; + flex-direction: column; + flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid var(--platform-surface-border); @@ -1027,6 +1031,7 @@ textarea { .launcher-project-table-header { height: 42px; + flex-shrink: 0; padding: 0 14px; border-bottom: 1px solid var(--platform-surface-border); background: color-mix( @@ -1047,6 +1052,7 @@ textarea { .launcher-project-table { display: grid; align-content: start; + flex: 1 1 auto; min-height: 0; overflow-y: auto; }