Skip to content

Commit d1576a1

Browse files
committed
feat : 채팅봇 줄바꿈 구현
1 parent 1f9d515 commit d1576a1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/components/ChatbotComponent/ChatResponse.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ const UserMessageBubble = styled.div`
4949
color: #ffffff;
5050
font-size: ${({ theme }) => theme.fontSizes.base};
5151
line-height: 1.6;
52+
white-space: pre-wrap;
5253
word-wrap: break-word;
54+
overflow-wrap: break-word;
5355
box-shadow: 0 2px 8px rgba(64, 140, 255, 0.2);
5456
transition:
5557
transform 0.2s ease,
@@ -78,7 +80,9 @@ const ResponseText = styled.div`
7880
line-height: 1.6;
7981
margin-bottom: ${({ theme }) => theme.spacing.md};
8082
animation: ${fadeIn} 0.5s ease-out;
81-
whitespace: pre-wrap;
83+
white-space: pre-wrap;
84+
word-wrap: break-word;
85+
overflow-wrap: break-word;
8286
8387
@media (max-width: ${({ theme }) => theme.breakpoints.tablet}) {
8488
font-size: ${({ theme }) => theme.fontSizes.sm};

src/components/ChatbotComponent/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ const WelcomeTitle = styled.h1`
126126
animation: ${slideUp} 0.8s ease-out;
127127
128128
@media (max-width: ${({ theme }) => theme.breakpoints.tablet}) {
129-
font-size: 2rem;
129+
font-size: 1.9rem;
130130
margin-bottom: ${({ theme }) => theme.spacing.md};
131131
}
132132
133133
@media (max-width: ${({ theme }) => theme.breakpoints.mobile}) {
134-
font-size: 1.5rem;
134+
font-size: 1.4rem;
135135
}
136136
`;
137137

0 commit comments

Comments
 (0)