Move listening indicator into stream name

This commit is contained in:
Max Goodhart
2020-07-27 14:11:14 -07:00
parent 397d41e26d
commit bc700abfae

View File

@@ -51,10 +51,10 @@ function Overlay({ config, views, streams }) {
</> </>
)} )}
</span> </span>
{isListening && <SoundIcon />}
</StreamTitle> </StreamTitle>
)} )}
{isLoading && <LoadingSpinner />} {isLoading && <LoadingSpinner />}
{isListening && <ListeningIndicator />}
</SpaceBorder> </SpaceBorder>
) )
})} })}
@@ -174,10 +174,17 @@ const StreamTitle = styled.div`
svg { svg {
width: 1.25em; width: 1.25em;
height: 1.25em; height: 1.25em;
margin-right: 0.35em;
overflow: visible; overflow: visible;
filter: drop-shadow(0 0 4px black); filter: drop-shadow(0 0 4px black);
&:first-child {
margin-right: 0.35em;
}
&:last-child {
margin-left: 0.5em;
}
path { path {
fill: white; fill: white;
} }
@@ -194,19 +201,6 @@ const LoadingSpinner = styled(TailSpin)`
opacity: 0.5; opacity: 0.5;
` `
const ListeningIndicator = styled(SoundIcon)`
position: absolute;
right: 15px;
bottom: 10px;
width: 30px;
height: 30px;
opacity: 0.9;
path {
fill: white;
}
`
const BlurCover = styled.div` const BlurCover = styled.div`
position: absolute; position: absolute;
left: 0; left: 0;