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