mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-29 08:22:49 -05:00
Show stream orientation in control list
This commit is contained in:
@@ -20,6 +20,10 @@ import {
|
||||
FaVideoSlash,
|
||||
FaVolumeUp,
|
||||
} from 'react-icons/fa'
|
||||
import {
|
||||
MdOutlineStayCurrentLandscape,
|
||||
MdOutlineStayCurrentPortrait,
|
||||
} from 'react-icons/md'
|
||||
import {
|
||||
ContentKind,
|
||||
ControlCommand,
|
||||
@@ -980,7 +984,7 @@ function StreamDelayBox({
|
||||
|
||||
function StreamLine({
|
||||
id,
|
||||
row: { label, source, link, notes, city, state },
|
||||
row: { label, source, link, notes, city, state, orientation },
|
||||
disabled,
|
||||
onClickId,
|
||||
}: {
|
||||
@@ -1007,7 +1011,15 @@ function StreamLine({
|
||||
label
|
||||
) : (
|
||||
<>
|
||||
<strong>{source}</strong> {city ? `(${city} ${state}) ` : ''}
|
||||
<strong>{source}</strong>{' '}
|
||||
{orientation === 'V' ? (
|
||||
<MdOutlineStayCurrentPortrait />
|
||||
) : orientation === 'H' ? (
|
||||
<MdOutlineStayCurrentLandscape />
|
||||
) : (
|
||||
''
|
||||
)}{' '}
|
||||
{city ? `(${city} ${state}) ` : ''}
|
||||
<a href={link} target="_blank">
|
||||
{truncate(link, { length: 55 })}
|
||||
</a>{' '}
|
||||
@@ -1556,6 +1568,10 @@ const StyledStreamLine = styled.div`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0.5em 0;
|
||||
|
||||
svg {
|
||||
height: 100%;
|
||||
}
|
||||
`
|
||||
|
||||
function CreateInviteInput({
|
||||
|
||||
Reference in New Issue
Block a user