From d4c33647a1ee14d9e36afe99fcbb687e17e07db9 Mon Sep 17 00:00:00 2001 From: hanqin Date: Wed, 6 May 2026 17:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E7=95=8C=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E8=B0=83=E6=95=B4=EF=BC=8C=E6=94=B9=E6=88=90?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E6=98=AF=E8=A7=92=E8=89=B2=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=EF=BC=8C=E4=B8=AD=E9=97=B4=E6=98=AF=E8=81=8A=E5=A4=A9=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=E5=8F=B3=E4=BE=A7=E6=98=AF=E7=AA=81=E7=A0=B4?= =?UTF-8?q?=E7=AD=89=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Build_God_Game/src/views/GameView.vue | 80 ++++++++++++++++++--------- 1 file changed, 54 insertions(+), 26 deletions(-) diff --git a/Build_God_Game/src/views/GameView.vue b/Build_God_Game/src/views/GameView.vue index 89d0449..b91f212 100644 --- a/Build_God_Game/src/views/GameView.vue +++ b/Build_God_Game/src/views/GameView.vue @@ -184,6 +184,10 @@ onMounted(async () => { +
+ +
+
@@ -251,10 +255,6 @@ onMounted(async () => {
- -
- -
@@ -284,23 +284,26 @@ onMounted(async () => { display: flex; flex-direction: row; align-items: stretch; - gap: 20px; - max-width: 1200px; + gap: 16px; + max-width: 1380px; margin: 0 auto; - min-height: calc(100vh - 48px); + height: calc(100vh - 32px); + min-height: calc(100vh - 32px); } .character-sidebar { - flex: 0 0 280px; + flex: 1 1 0; min-width: 0; - align-self: flex-start; - position: sticky; - top: 16px; - max-height: calc(100vh - 32px); - overflow-y: auto; + height: 100%; + display: flex; + flex-direction: column; + min-height: 0; } .sidebar-card { + flex: 1; + min-height: 0; + overflow-y: auto; background: rgba(16, 18, 24, 0.92); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; @@ -356,36 +359,44 @@ onMounted(async () => { } .game-main { - flex: 1; + flex: 1 1 0; min-width: 0; + height: 100%; display: flex; flex-direction: column; - gap: 16px; min-height: 0; } .game-container { - max-width: 560px; + flex: 1; + min-height: 0; + overflow-y: auto; width: 100%; - margin: 0 auto; - padding-top: 8px; + margin: 0; + padding: 16px; position: relative; z-index: 10; - flex-shrink: 0; + background: rgba(16, 18, 24, 0.92); + border: 1px solid rgba(255, 255, 255, 0.1); + border-radius: 16px; + box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); } .chat-panel { - flex: 1; - min-height: 280px; + flex: 1 1 0; + min-width: 0; + height: 100%; display: flex; flex-direction: column; - min-width: 0; + min-height: 0; } @media (max-width: 900px) { .game-shell { flex-direction: column; + height: auto; min-height: auto; + gap: 16px; } .character-sidebar { @@ -393,16 +404,33 @@ onMounted(async () => { width: 100%; max-width: 560px; margin: 0 auto; - position: relative; - top: 0; - max-height: none; + height: auto; + } + + .sidebar-card { + overflow-y: visible; + flex: none; } .chat-panel { + flex: none; + width: 100%; + max-width: none; + height: auto; min-height: 240px; + } + + .game-main { + flex: none; + width: 100%; + height: auto; + } + + .game-container { + flex: none; + overflow-y: visible; max-width: 560px; margin: 0 auto; - width: 100%; } }