diff --git a/public/css/Room.css b/public/css/Room.css index a82488d..15b8cf3 100644 --- a/public/css/Room.css +++ b/public/css/Room.css @@ -524,6 +524,13 @@ emoji-picker { transform: translate(-50%, -50%); } +.center-img { + display: block; + margin-left: auto; + margin-right: auto; + width: 50%; +} + .fadein { -webkit-animation: fadeIn ease-in 1; -moz-animation: fadeIn ease-in 1; @@ -626,14 +633,16 @@ button:hover { overflow: hidden; } -#sendAbortBtn { +#sendAbortBtn, +#receiveHideBtn { padding: 5px; border-radius: 5px; color: white; background: transparent; } -#sendAbortBtn:hover { +#sendAbortBtn:hover, +#receiveHideBtn:hover { color: rgb(255, 0, 0); transform: var(--btns-hover-scale); transition: all 0.3s ease-in-out; @@ -644,6 +653,11 @@ progress { min-width: 100%; } +#imgShareSend:hover, +#imgShareReceive:hover { + cursor: move; +} + /*-------------------------------------------------------------- # Whiteboard --------------------------------------------------------------*/ diff --git a/public/images/share.png b/public/images/share.png new file mode 100644 index 0000000..c3c7567 Binary files /dev/null and b/public/images/share.png differ diff --git a/public/js/Room.js b/public/js/Room.js index 2314e49..71f4696 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -481,6 +481,8 @@ function roomIsReady() { rc.makeDraggable(mySettings, mySettingsHeader); rc.makeDraggable(participants, participantsHeader); rc.makeDraggable(whiteboard, whiteboardHeader); + rc.makeDraggable(sendFileDiv, imgShareSend); + rc.makeDraggable(receiveFileDiv, imgShareReceive); if (navigator.getDisplayMedia || navigator.mediaDevices.getDisplayMedia) { show(startScreenButton); } diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index d0761ad..1d014ad 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -25,6 +25,7 @@ const image = { user: '../images/participant.png', youtube: '../images/youtube.png', message: '../images/message.png', + share: '../images/share.png', }; const mediaType = { @@ -1778,6 +1779,8 @@ class RoomClient { Swal.fire({ allowOutsideClick: false, background: swalBackground, + imageAlt: 'mirotalksfu-file-sharing', + imageUrl: image.share, position: 'center', title: 'Share the file', input: 'file', diff --git a/public/view/Room.html b/public/view/Room.html index 1b8383d..81376fb 100644 --- a/public/view/Room.html +++ b/public/view/Room.html @@ -256,6 +256,7 @@ access to use this app.

