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
className="text-label"
>
You are sharing your screen on
<b>
Symphony
</b>
<span>
You are sharing your screen on
<b>
Symphony
</b>
</span>
</span>
<span
className="buttons"

View File

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