From 58c03d874c286940a9d996d7fa9f6db3d2dd2386 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 30 Dec 2024 22:34:38 +0100 Subject: [PATCH] [mirotalkc2c] - fix chat break-word --- backend/server.js | 2 +- frontend/css/chat.css | 3 +++ frontend/js/client.js | 2 +- package.json | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/server.js b/backend/server.js index 47eaa8b..69d9cfb 100644 --- a/backend/server.js +++ b/backend/server.js @@ -9,7 +9,7 @@ * @license For private project or commercial purposes contact us at: license.mirotalk@gmail.com or purchase it directly via Code Canyon: * @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.1.51 + * @version 1.1.52 */ require('dotenv').config(); diff --git a/frontend/css/chat.css b/frontend/css/chat.css index 7d481b2..52f5d7f 100644 --- a/frontend/css/chat.css +++ b/frontend/css/chat.css @@ -88,6 +88,9 @@ } .chat .body .msg .text { + word-break: break-word; + overflow-wrap: break-word; + white-space: pre-wrap; padding: 10px; border-radius: 12px; background: var(--chat-bg); diff --git a/frontend/js/client.js b/frontend/js/client.js index b05584e..cfeff35 100644 --- a/frontend/js/client.js +++ b/frontend/js/client.js @@ -9,7 +9,7 @@ * @license For private project or commercial purposes contact us at: license.mirotalk@gmail.com or purchase it directly via Code Canyon: * @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.1.51 + * @version 1.1.52 */ const roomId = new URLSearchParams(window.location.search).get('room'); diff --git a/package.json b/package.json index 8eff24a..60f0c70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalkc2c", - "version": "1.1.51", + "version": "1.1.52", "description": "A free WebRTC Cam-2-Cam browser-based video calls", "main": "server.js", "scripts": {