Show stream orientation in control list

This commit is contained in:
Max Goodhart
2026-01-24 15:19:30 -08:00
parent 92499848cd
commit 8fd9ca1c1d
2 changed files with 19 additions and 2 deletions

View File

@@ -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({

View File

@@ -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
} }