mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
27 lines
730 B
TypeScript
27 lines
730 B
TypeScript
|
|
import { Theme } from '@mui/material';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The vertical padding for the display name.
|
||
|
|
*/
|
||
|
|
export const DISPLAY_NAME_VERTICAL_PADDING = 4;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Returns the typography for stage participant display name badge.
|
||
|
|
*
|
||
|
|
* @param {Theme} theme - The current theme.
|
||
|
|
* @returns {ITypographyType}
|
||
|
|
*/
|
||
|
|
export function getStageParticipantTypography(theme: Theme) {
|
||
|
|
return theme.typography.bodyShortRegularLarge;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Returns the height + padding for stage participant display name badge.
|
||
|
|
*
|
||
|
|
* @param {Theme} theme - The current theme.
|
||
|
|
* @returns {number}
|
||
|
|
*/
|
||
|
|
export function getStageParticipantNameLabelHeight(theme: Theme) {
|
||
|
|
return getStageParticipantTypography(theme).lineHeight ?? 0 + DISPLAY_NAME_VERTICAL_PADDING;
|
||
|
|
}
|