Skip to content

Commit

Permalink
Fix long word wrapping issue in Chat.tsx and style.css
Browse files Browse the repository at this point in the history
  • Loading branch information
tako0614 committed Jun 16, 2024
1 parent f532c58 commit 0bfbe43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion islands/Chats/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default function Home(
isChoiceUser={isChoiceUser}
/>

<div class="wrapper">
<div class="wrapper w-full">
<main
class={isChoiceUser ? "p-talk is-inview" : "p-talk"}
id="chatmain"
Expand Down
3 changes: 3 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ html, body {

.c-talk-chat-msg p {
width: fit-content;
max-width: 100%; /* Ensure it doesn't exceed the container width */
word-wrap: break-word; /* Break long words */
word-break: break-all; /* Ensure long words are broken */
}

.c-talk-chat.other .c-talk-chat-msg {
Expand Down

0 comments on commit 0bfbe43

Please sign in to comment.