Skip to content

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

feat(dynamic-branding): SVG branding image needs to cover the entire screen (#11724)

Calinteodore77679d025bf
diff --git a/react/features/dynamic-branding/components/native/BrandingImageBackground.tsx b/react/features/dynamic-branding/components/native/BrandingImageBackground.tsx
index c318bb4fe9..edc99a0c29 100644
--- a/react/features/dynamic-branding/components/native/BrandingImageBackground.tsx
+++ b/react/features/dynamic-branding/components/native/BrandingImageBackground.tsx
@@ -33,8 +33,16 @@ const BrandingImageBackground: React.FC<Props> = ({ uri }:Props) => {
= (
<SvgUri
height = '100%'
+
+ // Force uniform scaling.
+ // Align the <min-x> of the element's viewBox
+ // with the smallest X value of the viewport.
+ // Align the <min-y> of the element's viewBox
+ // with the smallest Y value of the viewport.
+ preserveAspectRatio = 'xMinYMin'
style = { styles.brandingImageBackgroundSvg }
uri = { imgSrc }
+ viewBox = '0 0 400 650'
width = '100%' />
);
} else {