File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/layout/game/components Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 ( ) }
You can’t perform that action at this time.
0 commit comments