Hide empty stream titles

This commit is contained in:
Max Goodhart
2020-11-08 13:09:47 -08:00
parent 6a539f8384
commit 0ca8c62863

View File

@@ -34,6 +34,7 @@ function Overlay({ config, views, streams }) {
) )
const isBlurred = viewState.matches('displaying.running.video.blurred') const isBlurred = viewState.matches('displaying.running.video.blurred')
const isLoading = viewState.matches('displaying.loading') const isLoading = viewState.matches('displaying.loading')
const hasTitle = data && (data.label || data.source)
return ( return (
<SpaceBorder <SpaceBorder
pos={pos} pos={pos}
@@ -43,7 +44,7 @@ function Overlay({ config, views, streams }) {
isListening={isListening} isListening={isListening}
> >
<BlurCover isBlurred={isBlurred} /> <BlurCover isBlurred={isBlurred} />
{data && ( {hasTitle && (
<StreamTitle activeColor={activeColor} isListening={isListening}> <StreamTitle activeColor={activeColor} isListening={isListening}>
<StreamIcon url={content.url} /> <StreamIcon url={content.url} />
<span> <span>