Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Overnap
2021-06-07 05:51:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d4e90c72a832607cbf11c1f845dbaaa142c9901
0d4e90c7
1 parent
a687e31e
채팅 관련 css 수정
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
web/src/components/room/Chat.tsx
web/src/components/room/ChatLine.tsx
web/src/components/room/Chat.tsx
View file @
0d4e90c
...
...
@@ -41,7 +41,7 @@ export const Chat: React.FC = () => {
}, [input]);
return (
<div className='w-
5
/12'>
<div className='w-
4
/12'>
<div className='w-full h-80 rounded shadow flex flex-col overflow-y-scroll'>
{chatLines.map((line, i) => (<ChatLine key={16383+i} chatData={line}/>))}
<div ref={messageEndRef} />
...
...
web/src/components/room/ChatLine.tsx
View file @
0d4e90c
...
...
@@ -7,7 +7,7 @@ interface ChatLineProps {
export const ChatLine: React.FC<ChatLineProps> = ({ chatData }) => {
return (
<div className='w-
5/6 px-3 py-2
bg-white
<div className='w-
full px-3 py-1.5
bg-white
text-gray-700 text-sm'>{chatData.sender} : {chatData.message}</div>
);
}
...
...
Please
register
or
login
to post a comment