[mirotalk] - improve chat and caption UI
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ dependencies: {
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.6.21
|
||||
* @version 1.6.22
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.6.21",
|
||||
"version": "1.6.22",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "mirotalk",
|
||||
"version": "1.6.21",
|
||||
"version": "1.6.22",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@mattermost/client": "11.0.4",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.6.21",
|
||||
"version": "1.6.22",
|
||||
"description": "A free WebRTC browser-based video call",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
||||
+183
-92
@@ -341,11 +341,12 @@ body {
|
||||
min-height: var(--caption-height);
|
||||
min-width: var(--caption-width);
|
||||
background: var(--msger-bg);
|
||||
border: var(--border);
|
||||
border: none;
|
||||
resize: both;
|
||||
overflow: hidden;
|
||||
border-radius: 12px;
|
||||
box-shadow: var(--box-shadow);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: blur(10px);
|
||||
transition:
|
||||
width 0.4s ease-in-out,
|
||||
height 0.4s ease-in-out;
|
||||
@@ -358,7 +359,7 @@ body {
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
background: var(--msger-bg);
|
||||
border-radius: 12px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
/* Draggable Header */
|
||||
@@ -366,83 +367,109 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 15px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
padding: 16px 20px;
|
||||
background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
|
||||
color: #fff;
|
||||
cursor: grab;
|
||||
font-weight: bold;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-weight: 600;
|
||||
font-size: 1.05rem;
|
||||
border-top-left-radius: 16px;
|
||||
border-top-right-radius: 16px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.caption-header-title button,
|
||||
.caption-header-options button {
|
||||
padding: 6px 10px;
|
||||
padding: 8px 12px;
|
||||
border: none;
|
||||
font-size: 1rem;
|
||||
background: transparent;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #fff;
|
||||
border-radius: 6px;
|
||||
transition: all 0.3s ease-in-out;
|
||||
border-radius: 8px;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
|
||||
.caption-header-title button:hover,
|
||||
.caption-header-options button:hover {
|
||||
background: var(--body-bg);
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* Chat Box */
|
||||
.caption-chat {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 12px;
|
||||
padding: 16px;
|
||||
background: transparent;
|
||||
max-width: 100%;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Scrollbar Styling */
|
||||
.caption-chat::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
.caption-chat::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.caption-chat::-webkit-scrollbar-thumb {
|
||||
background: black;
|
||||
border-radius: 5px;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border-radius: 10px;
|
||||
border: 2px solid transparent;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.caption-chat::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
/* Input Area */
|
||||
.caption-inputarea {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 10px;
|
||||
border-top: var(--border);
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
padding: 12px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.caption-inputarea select {
|
||||
min-width: 50px;
|
||||
margin: 0 5px;
|
||||
padding: 5px;
|
||||
background: var(--select-bg) !important;
|
||||
border-radius: 6px;
|
||||
margin: 0 8px;
|
||||
padding: 8px 12px;
|
||||
background: rgba(255, 255, 255, 0.1) !important;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: #fff;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
|
||||
.caption-inputarea select:hover {
|
||||
background: rgba(255, 255, 255, 0.15) !important;
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.caption-inputarea select:focus {
|
||||
outline: none;
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
background: rgba(255, 255, 255, 0.2) !important;
|
||||
}
|
||||
|
||||
/* Message Bubble */
|
||||
.left-msg .msg-caption-bubble {
|
||||
background: var(--left-msg-bg);
|
||||
border-bottom-left-radius: 0;
|
||||
background: linear-gradient(135deg, var(--left-msg-bg), rgba(0, 0, 0, 0.6));
|
||||
border-bottom-left-radius: 4px;
|
||||
color: #fff;
|
||||
width: var(--msger-bubble-width);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
padding: 12px 16px;
|
||||
border-radius: 18px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
#captionMaxBtn,
|
||||
@@ -453,18 +480,20 @@ body {
|
||||
/* Speech Recognition Buttons */
|
||||
#speechRecognitionStart,
|
||||
#speechRecognitionStop {
|
||||
margin: 0 5px;
|
||||
padding: 6px 12px;
|
||||
margin: 0 6px;
|
||||
padding: 8px 16px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
background-color: transparent;
|
||||
transition: background 0.3s;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
transition: all 0.25s ease;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
#speechRecognitionStart:hover,
|
||||
#speechRecognitionStop:hover {
|
||||
background: var(--body-bg);
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
@@ -481,12 +510,13 @@ body {
|
||||
min-height: var(--msger-height);
|
||||
min-width: var(--msger-width);
|
||||
background: var(--msger-bg);
|
||||
border: var(--border);
|
||||
border: none;
|
||||
/* text-align: justify; */
|
||||
resize: both;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
box-shadow: var(--box-shadow);
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: blur(10px);
|
||||
transition: width 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
@@ -497,7 +527,7 @@ body {
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
background: var(--msger-bg);
|
||||
border-radius: 12px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
@@ -509,29 +539,33 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 15px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
padding: 16px 20px;
|
||||
background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.3));
|
||||
color: #fff;
|
||||
cursor: grab;
|
||||
font-weight: bold;
|
||||
border-top-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
font-weight: 600;
|
||||
font-size: 1.05rem;
|
||||
border-top-left-radius: 16px;
|
||||
border-top-right-radius: 16px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.msger-header-title button,
|
||||
.msger-header-options button {
|
||||
padding: 6px 10px;
|
||||
padding: 8px 12px;
|
||||
border: none;
|
||||
font-size: 1rem;
|
||||
background: transparent;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
transition: all 0.3s ease-in-out;
|
||||
border-radius: 8px;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
|
||||
.msger-header-title button:hover,
|
||||
.msger-header-options button:hover {
|
||||
background: var(--body-bg);
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
#msgerMaxBtn,
|
||||
@@ -546,31 +580,51 @@ body {
|
||||
.msger-chat {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 12px;
|
||||
padding: 16px;
|
||||
background: transparent;
|
||||
max-width: 100%;
|
||||
font-size: 1rem;
|
||||
line-height: 1.5;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.msger-chat::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
.msger-chat::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.msger-chat::-webkit-scrollbar-thumb {
|
||||
background: black;
|
||||
/*aqua;*/
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border-radius: 10px;
|
||||
border: 2px solid transparent;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.msger-chat::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.msg {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
font-size: 0.8rem;
|
||||
margin-bottom: 10px;
|
||||
font-size: 0.85rem;
|
||||
margin-bottom: 16px;
|
||||
animation: fadeIn 0.3s ease;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.msg:last-of-type {
|
||||
@@ -580,21 +634,23 @@ body {
|
||||
/* left side */
|
||||
|
||||
.left-msg .msg-bubble {
|
||||
background: var(--left-msg-bg);
|
||||
border-bottom-left-radius: 0;
|
||||
background: linear-gradient(135deg, var(--left-msg-bg), rgba(0, 0, 0, 0.6));
|
||||
border-bottom-left-radius: 4px;
|
||||
color: #fff;
|
||||
width: var(--msger-bubble-width);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.left-msg .private-msg-bubble {
|
||||
background: var(--private-msg-bg);
|
||||
border-bottom-left-radius: 0;
|
||||
background: linear-gradient(135deg, var(--private-msg-bg), rgba(0, 0, 0, 0.6));
|
||||
border-bottom-left-radius: 4px;
|
||||
color: #fff;
|
||||
width: var(--msger-bubble-width);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.left-msg .msg-img {
|
||||
margin: 0px 5px 5px 0px;
|
||||
margin: 0px 10px 5px 0px;
|
||||
}
|
||||
|
||||
/* right side */
|
||||
@@ -604,21 +660,23 @@ body {
|
||||
}
|
||||
|
||||
.right-msg .msg-bubble {
|
||||
background: var(--right-msg-bg);
|
||||
border-bottom-right-radius: 0;
|
||||
background: linear-gradient(135deg, var(--right-msg-bg), rgba(0, 0, 0, 0.6));
|
||||
border-bottom-right-radius: 4px;
|
||||
color: #fff;
|
||||
width: var(--msger-bubble-width);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.right-msg .private-msg-bubble {
|
||||
background: var(--private-msg-bg);
|
||||
border-bottom-right-radius: 0;
|
||||
background: linear-gradient(135deg, var(--private-msg-bg), rgba(0, 0, 0, 0.6));
|
||||
border-bottom-right-radius: 4px;
|
||||
color: #fff;
|
||||
width: var(--msger-bubble-width);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.right-msg .msg-img {
|
||||
margin: 0px 0px 5px 5px;
|
||||
margin: 0px 0px 5px 10px;
|
||||
}
|
||||
|
||||
/* common */
|
||||
@@ -630,41 +688,47 @@ body {
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
border-radius: 50%;
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.peer-img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50px !important;
|
||||
border: 2px solid rgba(255, 255, 255, 0.2);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.private-msg-bubble,
|
||||
.msg-bubble {
|
||||
/* max-width: 200px; */
|
||||
padding: 15px;
|
||||
border-radius: 15px;
|
||||
padding: 12px 16px;
|
||||
border-radius: 18px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.msg-caption-bubble {
|
||||
padding: 15px;
|
||||
border-radius: 15px;
|
||||
padding: 12px 16px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
.msg-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.msg-info-name {
|
||||
margin-right: 10px;
|
||||
font-weight: bold;
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.msg-info-time {
|
||||
font-size: 0.85em;
|
||||
font-size: 0.75em;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.msg-text {
|
||||
@@ -713,10 +777,10 @@ button {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
/* color: white !important;
|
||||
background: var(--body-bg); */
|
||||
}
|
||||
/* button:hover {
|
||||
color: white !important;
|
||||
background: var(--body-bg);
|
||||
} */
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
# Chat room input area
|
||||
@@ -801,16 +865,29 @@ button:hover {
|
||||
cursor: default;
|
||||
background: var(--msger-private-bg);
|
||||
overflow: hidden;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
#msgerCPChat {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
background: transparent;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
#msgerCPList {
|
||||
border: var(--border);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12px;
|
||||
padding: 8px;
|
||||
margin: 8px 0;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
backdrop-filter: blur(10px);
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
|
||||
#msgerCPList:hover {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
#msgerCPList textarea {
|
||||
@@ -819,29 +896,43 @@ button:hover {
|
||||
|
||||
#msgerCPList button {
|
||||
border: none;
|
||||
font-size: 1rem;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
font-size: 0.95rem;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
border-radius: 8px;
|
||||
padding: 8px 12px;
|
||||
transition: all 0.25s ease;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
#msgerCPList button:hover {
|
||||
color: var(--hover-color);
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
transform: translateX(3px);
|
||||
}
|
||||
|
||||
#searchPeerBarName {
|
||||
width: 94.5%;
|
||||
padding: 10px;
|
||||
width: calc(100% - 24px);
|
||||
padding: 12px 16px;
|
||||
margin: 0 12px;
|
||||
font-size: 1rem;
|
||||
background-color: transparent;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
color: #ffffff;
|
||||
border: var(--border);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 12px;
|
||||
transition: all 0.25s ease;
|
||||
}
|
||||
|
||||
#searchPeerBarName:focus {
|
||||
outline: none;
|
||||
border-color: rgba(255, 255, 255, 0.3);
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.msger-peer-inputarea {
|
||||
display: flex;
|
||||
padding: 10px;
|
||||
background: var(--msger-bg);
|
||||
padding: 12px;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.msger-peer-inputarea * {
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ let brand = {
|
||||
},
|
||||
about: {
|
||||
imageUrl: '../images/mirotalk-logo.gif',
|
||||
title: 'WebRTC P2P v1.6.21',
|
||||
title: 'WebRTC P2P v1.6.22',
|
||||
html: `
|
||||
<button
|
||||
id="support-button"
|
||||
|
||||
+2
-2
@@ -15,7 +15,7 @@
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.6.21
|
||||
* @version 1.6.22
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -12301,7 +12301,7 @@ function showAbout() {
|
||||
Swal.fire({
|
||||
background: swBg,
|
||||
position: 'center',
|
||||
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.6.21',
|
||||
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.6.22',
|
||||
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
|
||||
customClass: { image: 'img-about' },
|
||||
html: `
|
||||
|
||||
Reference in New Issue
Block a user