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%;
}
}