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