Files
jitsi-meet/react/features/participants-pane/components/web/ParticipantsCounter.tsx
raduanastase8x8 d2e52d2c2a ref(Theme): Changes typography values to rem (#16021)
Replaces hard-coded pixel values with relative rem units across UI components to improve typography responsiveness and maintainability.

Co-authored-by: Hristo Terezov <hristo@jitsi.org>
2025-08-06 19:07:27 -05:00

34 lines
965 B
TypeScript

import React from 'react';
import { useSelector } from 'react-redux';
import { makeStyles } from 'tss-react/mui';
import { getParticipantCountForDisplay } from '../../../base/participants/functions';
const useStyles = makeStyles()(theme => {
return {
badge: {
backgroundColor: theme.palette.ui03,
borderRadius: '100%',
height: '16px',
minWidth: '16px',
color: theme.palette.text01,
...theme.typography.labelBold,
pointerEvents: 'none',
position: 'absolute',
right: '-4px',
top: '-3px',
textAlign: 'center',
padding: '1px'
}
};
});
const ParticipantsCounter = () => {
const { classes } = useStyles();
const participantsCount = useSelector(getParticipantCountForDisplay);
return <span className = { classes.badge }>{participantsCount}</span>;
};
export default ParticipantsCounter;