mirror of https://github.com/jitsi/jitsi-meet
- Move the styles from css to tss-react ones - Dynamic fontSize based on the visible area of the page - Remove the gaps in the background when a line is wrapped. - Change the text color to white. - Remove transparency.pull/15049/head jitsi-meet_9706
parent
2364344046
commit
2d56dbe249
@ -1,26 +0,0 @@ |
||||
.transcription-subtitles { |
||||
bottom: $newToolbarSize + 40px; |
||||
font-size: 16px; |
||||
font-weight: 1000; |
||||
left: 50%; |
||||
max-width: 50vw; |
||||
opacity: 0.80; |
||||
overflow-wrap: break-word; |
||||
pointer-events: none; |
||||
position: absolute; |
||||
text-shadow: 0px 0px 1px rgba(0,0,0,0.3), |
||||
0px 1px 1px rgba(0,0,0,0.3), |
||||
1px 0px 1px rgba(0,0,0,0.3), |
||||
0px 0px 1px rgba(0,0,0,0.3); |
||||
transform: translateX(-50%); |
||||
z-index: 7; |
||||
|
||||
&.lifted { |
||||
// Lift subtitle above toolbar+dominant speaker box. |
||||
bottom: $newToolbarSize + 36px + 40px; |
||||
} |
||||
|
||||
span { |
||||
background: black; |
||||
} |
||||
} |
@ -0,0 +1,26 @@ |
||||
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; |
||||
} |
@ -0,0 +1,4 @@ |
||||
/** |
||||
* The minimum font size for subtitles. |
||||
*/ |
||||
export const MIN_SUBTITLES_FONT_SIZE = 16; |
Loading…
Reference in new issue