Screen-sharing indicator bugfix (#1705)

This commit is contained in:
Salah Benmoussati 2023-02-13 09:00:28 +01:00 committed by GitHub
parent 5e9d7d7dae
commit 0c594fc46b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 8 deletions

View File

@ -7,12 +7,14 @@ exports[`screen sharing indicator should render correctly 1`] = `
<span <span
className="text-label" className="text-label"
> >
You are sharing your screen on <span>
<b> You are sharing your screen on
<b>
Symphony
Symphony
</b>
</b>
</span>
</span> </span>
<span <span
className="buttons" className="buttons"

View File

@ -121,11 +121,11 @@ export default class ScreenSharingIndicator extends React.Component<
} }
const appNameEndPosition = appNameStartPosition + appName.length; const appNameEndPosition = appNameStartPosition + appName.length;
return ( return (
<> <span>
{`${translatedLabel.slice(0, appNameStartPosition)}`} {`${translatedLabel.slice(0, appNameStartPosition)}`}
<b> {appName} </b> <b> {appName} </b>
{translatedLabel.slice(appNameEndPosition)} {translatedLabel.slice(appNameEndPosition)}
</> </span>
); );
} }
} }