File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ const ROTATE_INTERVAL = 12;
1313
1414export const SubScreenAnnouncementsView : React . FC < {
1515 track : TrackSlug ;
16- } > = ( { } ) => {
16+ } > = ( { track } ) => {
1717 const kioskProps = useKioskContext ( ) ;
1818 const apictx = useApiContext ( false ) ;
1919 const tick = useTick ( ) ;
2020 const { data : venueAnnouncements } = Api . useVenueAnnouncements ( apictx ) ;
21+ const { data : screen } = Api . useScreenControl ( apictx , track ) ;
2122
2223 const pages = useMemo ( ( ) => {
2324 const retval : VenueAnnouncement [ ] = [ ] ;
@@ -64,7 +65,12 @@ export const SubScreenAnnouncementsView: React.FC<{
6465
6566 return (
6667 < React . Suspense fallback = { < Skeleton w = "100%" h = "100%" /> } >
67- < Flex w = "100%" h = "100%" direction = "row" justify = "space-between" >
68+ < Flex
69+ w = "100%"
70+ h = "100%"
71+ direction = { screen ?. subscreen_layout === "horizontal" ? "row" : "column" }
72+ justify = "space-between"
73+ >
6874 < Box fontSize = "3.6vw" w = "100%" h = "100%" >
6975 { returnToBr ( page . content ) }
7076 </ Box >
@@ -78,7 +84,7 @@ export const SubScreenAnnouncementsView: React.FC<{
7884 value = { page . url }
7985 level = { "M" }
8086 includeMargin = { true }
81- size = { 300 }
87+ size = { screen ?. subscreen_layout === "horizontal" ? 300 : 200 }
8288 />
8389 </ Box >
8490 </ >
You can’t perform that action at this time.
0 commit comments