Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

ref(popover): allow for popover content from the right (#3302)

virtuacoplennya36b341865ee
diff --git a/css/_popover.scss b/css/_popover.scss
index 2af5e8ed98..f89aa10364 100644
--- a/css/_popover.scss
+++ b/css/_popover.scss
@@ -10,14 +10,24 @@
right: 0;
width: 100%;
}
-.popover-mousemove-padding-right {
+
+%vertical-popover-padding {
height: 100%;
position: absolute;
- right: -20;
top: 0;
width: 40px;
}
+.popover-mousemove-padding-left {
+ @extend %vertical-popover-padding;
+ left: -20px;
+}
+
+.popover-mousemove-padding-right {
+ @extend %vertical-popover-padding;
+ right: -20px;
+}
+
/**
* An invisible element is added to the top of the popover to ensure the mouse
* stays over the popover when the popover's height is shrunk, which would then
diff --git a/react/features/base/popover/components/Popover.web.js b/react/features/base/popover/components/Popover.web.js
index 7435c31627..0d9458ae47 100644
--- a/react/features/base/popover/components/Popover.web.js
+++ b/react/features/base/popover/components/Popover.web.js
@@ -11,6 +11,7 @@ import React, { Component } from 'react';
*/
const DIALOG_TO_PADDING_POSITION = {
'left': 'popover-mousemove-padding-right',
+ 'right': 'popover-mousemove-padding-left',
'top': 'popover-mousemove-padding-bottom'
};