From b654bf0994dd6a96627cae3dea10b67fb388d948 Mon Sep 17 00:00:00 2001 From: Kostya Bats Date: Sat, 9 Mar 2024 15:26:43 +0300 Subject: [PATCH] Fix teamview video layout, 20 row in queue --- .../main/kotlin/org/icpclive/service/QueueService.kt | 2 +- .../organisms/holder/ContestantViewHolder.tsx | 12 +++++++++--- .../src/components/organisms/widgets/Scoreboard.tsx | 2 +- src/frontend/overlay/src/config.ts | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/backend/src/main/kotlin/org/icpclive/service/QueueService.kt b/src/backend/src/main/kotlin/org/icpclive/service/QueueService.kt index 5df527ddf..738cd4336 100644 --- a/src/backend/src/main/kotlin/org/icpclive/service/QueueService.kt +++ b/src/backend/src/main/kotlin/org/icpclive/service/QueueService.kt @@ -178,6 +178,6 @@ class QueueService { private val WAIT_TIME = 1.minutes private val FIRST_TO_SOLVE_WAIT_TIME = 2.minutes private val FEATURED_WAIT_TIME = 1.minutes - private const val MAX_QUEUE_SIZE = 30 + private const val MAX_QUEUE_SIZE = 20 } } diff --git a/src/frontend/overlay/src/components/organisms/holder/ContestantViewHolder.tsx b/src/frontend/overlay/src/components/organisms/holder/ContestantViewHolder.tsx index 195b390b4..48cf92c1e 100644 --- a/src/frontend/overlay/src/components/organisms/holder/ContestantViewHolder.tsx +++ b/src/frontend/overlay/src/components/organisms/holder/ContestantViewHolder.tsx @@ -5,6 +5,7 @@ import { pushLog } from "@/redux/debug"; import { GrabberPlayerClient } from "../../../utils/grabber/grabber_player"; import { useAppDispatch } from "@/redux/hooks"; import { MediaType } from "@shared/api"; +import c from "../../../config"; // export const TeamImageWrapper = styled.img /*` // // border-radius: ${({ borderRadius }) => borderRadius}; @@ -21,6 +22,11 @@ import { MediaType } from "@shared/api"; // border-radius: ${({ borderRadius }) => borderRadius}; // `*/; +export const VideoWrapper = styled.video` + position: absolute; + width: 100%; + border-radius: ${c.GLOBAL_BORDER_RADIUS}; +`; export const TeamWebRTCProxyVideoWrapper = ({ url, setIsLoaded, ...props }) => { const dispatch = useAppDispatch(); @@ -53,7 +59,7 @@ export const TeamWebRTCProxyVideoWrapper = ({ url, setIsLoaded, ...props }) => { return () => rtcRef.current?.close(); }, [url]); - return (