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(watermark) move static styles into stylesheet file & refactor a tiny bit

Thomas Egebrand Grambda39ef87639
diff --git a/css/_base.scss b/css/_base.scss
index a4f71d8300..61d7c524ac 100644
--- a/css/_base.scss
+++ b/css/_base.scss
@@ -115,17 +115,18 @@ form {
}
.leftwatermark {
+ max-width: 140px;
+ max-height:70px;
left: 32px;
top: 32px;
background-position: center left;
background-repeat: no-repeat;
background-size: contain;
-}
-.leftwatermarknomargin {
- background-position: center left;
- background-repeat: no-repeat;
- background-size: contain;
+ &.no-margin {
+ left:0;
+ top:0;
+ }
}
.rightwatermark {
diff --git a/css/_welcome_page.scss b/css/_welcome_page.scss
index e5ca272180..6292a9d2ea 100644
--- a/css/_welcome_page.scss
+++ b/css/_welcome_page.scss
@@ -260,11 +260,6 @@ body.welcome-page {
width: $welcomePageWatermarkWidth;
height: $welcomePageWatermarkHeight;
}
-
- .watermark.leftwatermarknomargin {
- width: $welcomePageWatermarkWidth;
- height: $welcomePageWatermarkHeight;
- }
}
&.without-content {
diff --git a/react/features/base/react/components/web/Watermarks.tsx b/react/features/base/react/components/web/Watermarks.tsx
index 04c03eca7a..b6b7d923b4 100644
--- a/react/features/base/react/components/web/Watermarks.tsx
+++ b/react/features/base/react/components/web/Watermarks.tsx
@@ -158,15 +158,13 @@ class Watermarks extends Component<IProps, State> {
_showJitsiWatermark
} = this.props;
const { noMargins, t } = this.props;
- const className = `watermark ${noMargins ? 'leftwatermarknomargin' : 'leftwatermark'}`;
+ const className = `watermark leftwatermark ${noMargins ? 'no-margin' : ''}`;
let reactElement = null;
if (_showJitsiWatermark) {
const style = {
backgroundImage: `url(${_logoUrl})`,
- maxWidth: 140,
- maxHeight: 70,
position: _logoLink ? 'static' : 'absolute'
} as const;