Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
ref(theme): revert spacing to number and not rem.
Hristo Terezov3d5c08d86f48
diff --git a/react/features/base/ui/Tokens.ts b/react/features/base/ui/Tokens.tsindex dbf58c26e9..e3b3e6472b 100644--- a/react/features/base/ui/Tokens.ts+++ b/react/features/base/ui/Tokens.ts@@ -128,8 +128,7 @@ export const shape = {boxShadow: 'inset 0px -1px 0px rgba(255, 255, 255, 0.15)'};-export const spacing- = [ '0rem', '0.25rem', '0.5rem', '1rem', '1.5rem', '2rem', '2.5rem', '3rem', '3.5rem', '4rem', '4.5rem', '5rem', '5.5rem', '6rem', '6.5rem', '7rem', '7.5rem', '8rem' ];+export const spacing = [ 0, 4, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128 ];export const typography = {labelRegular: 'label01',diff --git a/react/features/base/ui/components/web/ContextMenu.tsx b/react/features/base/ui/components/web/ContextMenu.tsxindex 74c72747c2..5f4c4ce815 100644--- a/react/features/base/ui/components/web/ContextMenu.tsx+++ b/react/features/base/ui/components/web/ContextMenu.tsx@@ -213,7 +213,7 @@ const ContextMenu = ({if (offsetTop + height > offsetHeight + scrollTop && height > offsetTop) {// top offset and + padding + border- container.style.maxHeight = `calc(${offsetTop}px - (${spacing[2]} * 2 + 2px))`;+ container.style.maxHeight = `${offsetTop - ((spacing[2] * 2) + 2)}px`;}// get the height after style changesdiff --git a/react/features/base/ui/functions.native.ts b/react/features/base/ui/functions.native.tsindex 780c101ed8..64eb143f64 100644--- a/react/features/base/ui/functions.native.ts+++ b/react/features/base/ui/functions.native.ts@@ -42,7 +42,7 @@ export function createNativeTheme({ font, colorMap, shape, spacing, typography }...DefaultTheme,palette: createColorTokens(colorMap),shape,- spacing: spacing.map(remToPixels),+ spacing,typography: {font,...convertRemValues(typography)diff --git a/react/features/base/ui/functions.web.ts b/react/features/base/ui/functions.web.tsindex cbe8fb51b3..03bee6014b 100644--- a/react/features/base/ui/functions.web.ts+++ b/react/features/base/ui/functions.web.ts@@ -20,7 +20,7 @@ interface ThemeProps {colorMap: Object;font: Object;shape: Object;- spacing: Array<number | string>;+ spacing: Array<number>;typography: Object;}