fix: responsive C4 board on mobile and preserve chat input during morph
All checks were successful
Deploy c4 / deploy (push) Successful in 42s
All checks were successful
Deploy c4 / deploy (push) Successful in 42s
Shrink board cells to 36px with tighter gaps on <768px screens so the board fits on 375px phones. Add DataIgnoreMorph to the C4 chat input so typing isn't disrupted when new messages arrive.
This commit is contained in:
@@ -166,6 +166,9 @@
|
||||
.c4-game-area { flex-direction: column; align-items: center; }
|
||||
.c4-game-area .c4-chat { width: 100%; max-width: 480px; }
|
||||
.c4-chat-history { height: 150px; }
|
||||
.board { gap: 4px; padding: 8px; }
|
||||
.column { gap: 4px; padding: 2px; }
|
||||
.cell { width: 36px; height: 36px; }
|
||||
}
|
||||
|
||||
/* C4 chat */
|
||||
|
||||
@@ -1723,6 +1723,18 @@
|
||||
.c4-chat-history {
|
||||
height: 150px;
|
||||
}
|
||||
.board {
|
||||
gap: 4px;
|
||||
padding: 8px;
|
||||
}
|
||||
.column {
|
||||
gap: 4px;
|
||||
padding: 2px;
|
||||
}
|
||||
.cell {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
}
|
||||
.c4-chat {
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user