Spaces:
Runtime error
Runtime error
fix: chatlog height follows game canvas, not the other way around
Browse filesstage-row uses align-items:flex-start so game container (16:9 aspect
ratio) determines row height. chatlog-panel uses align-self:stretch
to match that height without pushing it taller.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
frontend/electron-standalone.html
CHANGED
|
@@ -404,7 +404,7 @@
|
|
| 404 |
#stage-row {
|
| 405 |
display: flex;
|
| 406 |
flex-direction: row;
|
| 407 |
-
align-items:
|
| 408 |
gap: 16px;
|
| 409 |
max-width: 98vw;
|
| 410 |
width: fit-content;
|
|
@@ -436,7 +436,8 @@
|
|
| 436 |
#chatlog-panel {
|
| 437 |
width: 300px;
|
| 438 |
flex-shrink: 0;
|
| 439 |
-
/* 高度
|
|
|
|
| 440 |
background: #1a1d27;
|
| 441 |
border: 4px solid #0e1119;
|
| 442 |
padding: 12px 16px;
|
|
|
|
| 404 |
#stage-row {
|
| 405 |
display: flex;
|
| 406 |
flex-direction: row;
|
| 407 |
+
align-items: flex-start;
|
| 408 |
gap: 16px;
|
| 409 |
max-width: 98vw;
|
| 410 |
width: fit-content;
|
|
|
|
| 436 |
#chatlog-panel {
|
| 437 |
width: 300px;
|
| 438 |
flex-shrink: 0;
|
| 439 |
+
/* 高度跟随主画面,不反向撑大主画面 */
|
| 440 |
+
align-self: stretch;
|
| 441 |
background: #1a1d27;
|
| 442 |
border: 4px solid #0e1119;
|
| 443 |
padding: 12px 16px;
|