mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 17:32:48 -05:00
Hide empty stream titles
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user