Skip to content

Commit 7ee677c

Browse files
committed
fix message ui
1 parent e94f1d2 commit 7ee677c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

web/components/chat/RoomWindow.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,11 @@ export function RoomWindow(props: Props) {
209209
</div>
210210
) : (
211211
<div
212-
className={`rounded-xl p-2 shadow ${
212+
className={`flex max-w-[70vw] rounded-xl p-2 shadow ${
213213
m.creator === myId ? "bg-secondary" : "bg-white"
214214
}`}
215215
>
216-
<p className="whitespace-pre-wrap break-words">
217-
{m.content}
218-
</p>
216+
<p className="whitespace-pre-wrap break-all">{m.content}</p>
219217
{m.creator === myId && (
220218
<Dots
221219
actions={[

0 commit comments

Comments
 (0)