From a48ede7e9c5771e07c6c188edb1ad49a6731fecb Mon Sep 17 00:00:00 2001 From: Max Goodhart Date: Sun, 25 Jan 2026 21:39:07 -0800 Subject: [PATCH] Orientation icons in grid labels --- packages/streamwall-control-ui/src/index.tsx | 38 +++++++++++++++----- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/packages/streamwall-control-ui/src/index.tsx b/packages/streamwall-control-ui/src/index.tsx index 0b73514..6153b4f 100644 --- a/packages/streamwall-control-ui/src/index.tsx +++ b/packages/streamwall-control-ui/src/index.tsx @@ -11,6 +11,7 @@ import { useState, } from 'preact/hooks' import { useHotkeys } from 'react-hotkeys-hook' +import { IconType } from 'react-icons' import { FaExchangeAlt, FaRedoAlt, @@ -740,7 +741,13 @@ export function ControlUI({ isError={matchesState('displaying.error', state.state)} > - {streamId} + + {streamId} + +
{data?.source}
{data?.city && ( @@ -987,6 +994,19 @@ function StreamDelayBox({ ) } +function OrientationIndicator({ + orientation, + ...props +}: { orientation: 'V' | 'H' | null } & React.ComponentProps) { + if (orientation === 'V') { + return + } else if (orientation === 'H') { + return + } else { + return null + } +} + function StreamLine({ id, row: { label, source, link, notes, city, state, orientation }, @@ -1017,13 +1037,7 @@ function StreamLine({ ) : ( <> {source}{' '} - {orientation === 'V' ? ( - - ) : orientation === 'H' ? ( - - ) : ( - '' - )}{' '} + {' '} {city ? `(${city} ${state}) ` : ''} {truncate(link, { length: 55 })} @@ -1482,7 +1496,15 @@ const StyledGridInfo = styled.div` ` const StyledGridLabel = styled.div` + display: flex; + align-items: center; + justify-content: center; + gap: 8px; font-size: 30px; + + .orientation-v { + margin-left: -4px; + } ` const StyledGridLocation = styled.div`