Skip to content

Commit

Permalink
[mirotalk] - add toggle pin 4 chat/caption, fix chat emoji bg, update…
Browse files Browse the repository at this point in the history
… dep
  • Loading branch information
miroslavpejic85 committed Aug 18, 2024
1 parent 6774ae7 commit 4024e70
Show file tree
Hide file tree
Showing 5 changed files with 349 additions and 54 deletions.
2 changes: 1 addition & 1 deletion app/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at [email protected] or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - [email protected]
* @version 1.3.68
* @version 1.3.70
*
*/

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.3.68",
"version": "1.3.70",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
Expand Down Expand Up @@ -55,7 +55,7 @@
"js-yaml": "^4.1.0",
"ngrok": "^5.0.0-beta.2",
"nodemailer": "^6.9.14",
"openai": "^4.55.7",
"openai": "^4.56.0",
"qs": "^6.13.0",
"socket.io": "^4.7.5",
"swagger-ui-express": "^5.0.1",
Expand Down
78 changes: 64 additions & 14 deletions public/css/client.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
--msger-width: 420px;
--msger-bubble-width: 85%;

--caption-top: 50%;
--caption-left: 50%;
--caption-height: 680px;
--caption-width: 420px;

Expand Down Expand Up @@ -345,10 +347,6 @@ body {
z-index: 14;
display: none;
position: fixed;
/* center screen */
top: var(--caption-top);
left: var(--caption-left);
transform: translate(-50%, -50%);
/* end center screen */
height: var(--caption-height);
width: var(--caption-width);
Expand All @@ -361,6 +359,7 @@ body {
overflow: hidden;
border-radius: 10px;
box-shadow: var(--box-shadow);
transition: width 0.5s ease-in-out;
}

.caption {
Expand All @@ -386,7 +385,7 @@ body {
padding: 5px;
/* border: var(--border); */
border: none;
font-size: 1.1rem;
font-size: 1rem;
background: transparent;
color: #fff;
border-radius: 5px;
Expand Down Expand Up @@ -467,10 +466,6 @@ body {
z-index: 14;
display: none;
position: fixed;
/* center screen */
top: var(--msger-top);
left: var(--msger-left);
transform: translate(-50%, -50%);
/* end center screen */
height: var(--msger-height);
width: var(--msger-width);
Expand All @@ -483,6 +478,7 @@ body {
overflow: hidden;
border-radius: 10px;
box-shadow: var(--box-shadow);
transition: width 0.5s ease-in-out;
}

.msger {
Expand Down Expand Up @@ -520,7 +516,7 @@ body {
padding: 5px;
/* border: var(--border); */
border: none;
font-size: 1.1rem;
font-size: 1rem;
background: transparent;
color: #fff;
border-radius: 5px;
Expand Down Expand Up @@ -860,10 +856,11 @@ button:hover {
position: absolute;
bottom: 105px;
left: 10px;
background: var(--body-bg);
border: var(--border);
border-radius: 5px;
--rgb-background: var(--body-bg);
--color-border-over: var(--body-bg);
--rgb-background: var(--body-bg) !important;
--color-border-over: var(--body-bg) !important;
--font-family: 'Comfortaa';
}

Expand Down Expand Up @@ -1875,11 +1872,11 @@ hr {

/* Styles for the dropdown button */
.dropdown-toggle {
background-color: var(--body-bg);
/* padding: 10px 20px; */
color: #fff;
border: none;
border-radius: 5px;
/* padding: 10px 20px; */
background-color: var(--body-bg);
cursor: pointer;
}

Expand All @@ -1894,6 +1891,59 @@ hr {
box-shadow: var(--box-shadow);
}

/*--------------------------------------------------------------
# Dropdown menu custom
--------------------------------------------------------------*/

/* General container for the dropdown */
.dropdown-custom {
position: relative;
display: inline-block;
}

/* Style the button that triggers the dropdown */
.dropdown-toggle-custom {
color: #fff;
border: var(--border);
background: var(--body-bg);
cursor: pointer;
}

/* Dropdown menu */
.dropdown-menu-custom {
z-index: 1;
display: none;
position: absolute;
right: 0;
padding: 10px 0;
min-width: 240px;
border-radius: 5px;
border: var(--border);
background: var(--body-bg);
box-shadow: var(--box-shadow);
}

/* Style for dropdown items */
.dropdown-menu-custom li {
padding: 8px 16px;
list-style-type: none;
}

.dropdown-menu-custom li button {
border: none;
background: none;
width: 100%;
text-align: left;
padding: 8px 16px;
font-size: 0.8em;
cursor: pointer;
color: #fff;
}

.dropdown-menu-custom li button:hover {
background-color: var(--hover-bg); /* Use a default hover color if --hover-bg is not defined */
}

/* Styles for table cell with title (td) */
.microphone-table-width {
width: 50%;
Expand Down
Loading

0 comments on commit 4024e70

Please sign in to comment.