File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
packages/webui/src/client Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 7272 font-size : 2em ;
7373 letter-spacing : -0.03em ;
7474 }
75+
76+ .studio-screen-saver__info__screen-name {
77+ font-size : 0.5em ;
78+ text-align : right ;
79+ letter-spacing : 0.05em ;
80+ margin : 0.5em ;
81+ }
7582 }
7683}
Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ import { RundownPlaylists } from '../../collections'
1212import { StudioId } from '@sofie-automation/corelib/dist/dataModel/Ids'
1313import { CameraScreen } from './CameraScreen'
1414import { MeteorPubSub } from '@sofie-automation/meteor-lib/dist/api/pubsub'
15+ import { useTranslation } from 'react-i18next'
1516
1617export function ClockView ( { studioId } : Readonly < { studioId : StudioId } > ) : JSX . Element {
1718 useSubscription ( MeteorPubSub . rundownPlaylistForStudio , studioId , true )
19+ const { t } = useTranslation ( )
1820
1921 const playlist = useTracker (
2022 ( ) =>
@@ -33,7 +35,7 @@ export function ClockView({ studioId }: Readonly<{ studioId: StudioId }>): JSX.E
3335 < PresenterScreen playlistId = { playlist . _id } studioId = { studioId } />
3436 </ RundownTimingProvider >
3537 ) : (
36- < StudioScreenSaver studioId = { studioId } ownBackground = { true } />
38+ < StudioScreenSaver studioId = { studioId } ownBackground = { true } screenName = { t ( 'Presenter Screen' ) } />
3739 ) }
3840 </ Route >
3941 < Route path = "/countdowns/:studioId/director" >
Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ export class PrompterViewContent extends React.Component<Translated<IProps & ITr
558558 { this . renderAccessRequestButtons ( ) }
559559 </ >
560560 ) : this . props . studio ? (
561- < StudioScreenSaver studioId = { this . props . studio . _id } />
561+ < StudioScreenSaver studioId = { this . props . studio . _id } screenName = { t ( 'Prompter Screen' ) } />
562562 ) : this . props . studioId ? (
563563 this . renderMessage ( t ( "This studio doesn't exist." ) )
564564 ) : (
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { relativeToSiteRootUrl } from '../../url'
1919interface IProps {
2020 // the studio to be displayed in the screen saver
2121 studioId : StudioId
22-
22+ screenName ?: string
2323 ownBackground ?: boolean
2424}
2525
@@ -361,6 +361,9 @@ const StudioScreenSaverContent = withTranslation()(
361361 < div className = "studio-screen-saver__info__rundown" > { this . props . studio ?. name } </ div >
362362 )
363363 ) }
364+ { this . props . screenName && (
365+ < div className = "studio-screen-saver__info__screen-name" > { this . props . screenName } </ div >
366+ ) }
364367 </ div >
365368 </ div >
366369 )
You can’t perform that action at this time.
0 commit comments