Skip to content

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

fix(custom-panel): remove close button from custom panel

Hristo Terezov9a3917942f5a
diff --git a/react/features/custom-panel/actions.web.ts b/react/features/custom-panel/actions.web.ts
index 4de719a41b..686c9cfe51 100644
--- a/react/features/custom-panel/actions.web.ts
+++ b/react/features/custom-panel/actions.web.ts
@@ -11,6 +11,7 @@ import {
* Action to close the custom panel.
*
* @returns {Object} The action object.
+ * NOTE: this action is used in the branding files.
*/
export function close() {
return {
diff --git a/react/features/custom-panel/components/web/CustomPanel.tsx b/react/features/custom-panel/components/web/CustomPanel.tsx
index 62e11eaedb..ef2791a982 100644
--- a/react/features/custom-panel/components/web/CustomPanel.tsx
+++ b/react/features/custom-panel/components/web/CustomPanel.tsx
@@ -5,9 +5,7 @@ import { makeStyles } from 'tss-react/mui';
import { IReduxState } from '../../../app/types';
import { isTouchDevice, shouldEnableResize } from '../../../base/environment/utils';
-import { IconCloseLarge } from '../../../base/icons/svg';
-import ClickableIcon from '../../../base/ui/components/web/ClickableIcon';
-import { close, setCustomPanelIsResizing, setUserCustomPanelWidth } from '../../actions.web';
+import { setCustomPanelIsResizing, setUserCustomPanelWidth } from '../../actions.web';
import {
CUSTOM_PANEL_DRAG_HANDLE_HEIGHT,
CUSTOM_PANEL_DRAG_HANDLE_OFFSET,
@@ -77,31 +75,6 @@ const useStyles = makeStyles<IStylesProps>()((theme, { isResizing, isTouch, resi
}
},
- header: {
- alignItems: 'center',
- boxSizing: 'border-box',
- display: 'flex',
- height: '48px',
- padding: '12px',
- justifyContent: 'flex-end',
- position: 'absolute',
- top: 0,
- right: 0,
- zIndex: 1,
-
- '& button': {
- backgroundColor: 'rgba(0, 0, 0, 0.85)',
- borderRadius: '6px',
- padding: '8px',
- border: '1px solid rgba(255, 255, 255, 0.2)',
- boxShadow: '0 2px 4px rgba(0, 0, 0, 0.3)',
-
- '&:hover': {
- backgroundColor: 'rgba(0, 0, 0, 0.95)'
- }
- }
- },
-
contentContainer: {
flex: 1,
overflow: 'hidden',
@@ -262,15 +235,6 @@ export default function CustomPanel(): JSX.Element | null {
};
}, [ onDragPointerUp, onPanelResize ]);
- /**
- * Handles closing the custom panel.
- *
- * @returns {void}
- */
- const onClosePane = useCallback(() => {
- dispatch(close());
- }, [ dispatch ]);
-
if (!enabled || !paneOpen) {
return null;
}
@@ -288,12 +252,6 @@ export default function CustomPanel(): JSX.Element | null {
onPointerDown = { onDragHandlePointerDown }>
<div className = { cx(classes.dragHandle, 'customPanelDragHandle') } />
</div>
- <div className = { classes.header }>
- <ClickableIcon
- accessibilityLabel = 'Close'
- icon = { IconCloseLarge }
- onClick = { onClosePane } />
- </div>
<div className = { classes.contentContainer }>
<CustomPanelContent />
</div>