diff --git a/front/dist/resources/style/style.css b/front/dist/resources/style/style.css
index 427eff75..1eb8440d 100644
--- a/front/dist/resources/style/style.css
+++ b/front/dist/resources/style/style.css
@@ -39,6 +39,7 @@ body .message-info.warning{
position: relative;
transition: all 0.2s ease;
background-color: #00000099;
+ cursor: url('/resources/logos/cursor_pointer.png'), pointer;
}
.video-container i{
position: absolute;
@@ -53,10 +54,7 @@ body .message-info.warning{
font-size: 28px;
color: white;
}
-.video-container img.active{
- display: block;
- cursor: url('/resources/logos/cursor_pointer.png'), pointer;
-}
+
.video-container img{
position: absolute;
display: none;
@@ -68,9 +66,50 @@ body .message-info.warning{
z-index: 2;
}
-.video-container img.report{
+.video-container button.report{
+ display: block;
+ cursor: url('/resources/logos/cursor_pointer.png'), pointer;
+ background: none;
+ background-color: rgba(0, 0, 0, 0);
+ border: none;
+ background-color: black;
+ border-radius: 15px;
+ position: absolute;
+ width: 0px;
+ height: 35px;
right: 5px;
- left: auto;
+ bottom: 5px;
+ padding: 0px;
+ overflow: hidden;
+ z-index: 2;
+ transition: all .5s ease;
+}
+
+.video-container:hover button.report{
+ width: 35px;
+ padding: 10px;
+}
+
+.video-container button.report:hover {
+ width: 94px;
+}
+
+.video-container button.report img{
+ position: absolute;
+ display: block;
+ bottom: 5px;
+ left: 5px;
+ margin: 0;
+ padding: 0;
+ cursor: url('/resources/logos/cursor_pointer.png'), pointer;
+}
+.video-container button.report span{
+ position: absolute;
+ bottom: 8px;
+ left: 36px;
+ color: white;
+ font-size: 16px;
+ cursor: url('/resources/logos/cursor_pointer.png'), pointer;
}
.video-container video{
diff --git a/front/src/WebRtc/MediaManager.ts b/front/src/WebRtc/MediaManager.ts
index 054f0fe2..78749491 100644
--- a/front/src/WebRtc/MediaManager.ts
+++ b/front/src/WebRtc/MediaManager.ts
@@ -486,7 +486,13 @@ export class MediaManager {
${userName}
` +
- ((anonymous === false)?``:'')
+ ((anonymous === false)?`
+
+ `:''
+ )
+
`
@@ -506,7 +512,8 @@ export class MediaManager {
if(!anonymous){
const reportBanUserAction: HTMLImageElement = HtmlUtils.getElementByIdOrFail(`report-${userId}`);
- reportBanUserAction.addEventListener('click', () => {
+ reportBanUserAction.addEventListener('click', (e) => {
+ e.preventDefault();
showReportUser();
});
}