Skip to content

Commit e30f528

Browse files
committed
fix: 11번 이슈 조치
1 parent aeeb367 commit e30f528

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/layout/game/components/ChatSection.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ function ChatSection() {
7575
<div className="flex-1 min-h-0 p-4 overflow-y-auto space-y-2">
7676
{messages.map((msg) => (
7777
msg.type === "chat" ? (
78-
<div key={msg.id} className="flex items-start space-x-3">
79-
<Car className={`w-5 h-5 mt-0.5 ${msg.color ?? "text-gray-500"}`} />
80-
<div>
78+
<div key={msg.id} className="flex items-start space-x-3 w-full min-w-0">
79+
<Car className="w-5 h-5 mt-0.5 flex-shrink-0 text-red-500" />
80+
<div className="w-full min-w-0">
8181
<div className="text-sm font-medium text-gray-600">{msg.nickname}</div>
82-
<div className="text-sm text-gray-800">{msg.message}</div>
82+
<div className="text-sm text-gray-800 break-words">{msg.message}</div>
8383
</div>
8484
</div>
85+
8586
) : (
8687
<div key={msg.id} className="flex items-start space-x-3">
8788
<Bell className="w-5 h-5 mt-0.5 text-gray-500" />
@@ -100,6 +101,7 @@ function ChatSection() {
100101
<input
101102
type="text"
102103
placeholder="메시지를 입력하세요..."
104+
maxLength={100}
103105
value={chatMessage}
104106
onChange={(e) => setChatMessage(e.target.value)}
105107
onKeyPress={(e) => e.key === "Enter" && handleSendMessage()}

0 commit comments

Comments
 (0)