tao-shen Claude Opus 4.6 commited on
Commit
fbfb8a7
·
1 Parent(s): 5a4dc30

fix: chatlog height follows game canvas, not the other way around

Browse files

stage-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>

Files changed (1) hide show
  1. frontend/electron-standalone.html +3 -2
frontend/electron-standalone.html CHANGED
@@ -404,7 +404,7 @@
404
  #stage-row {
405
  display: flex;
406
  flex-direction: row;
407
- align-items: stretch;
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
- /* 高度完全由 stage-row 的 align-items:stretch 控制,与主窗口同高 */
 
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;