From bd47a2e89e792c187f8b447f2efda11966cf947a Mon Sep 17 00:00:00 2001 From: AAA <35992542+TNTcraftHIM@users.noreply.github.com> Date: Sat, 28 Nov 2026 10:49:09 -0500 Subject: [PATCH] fix(playback): keep settings compact beside the picture Ordinary screen playback settings previously expanded to nearly the whole narrow viewport. Use the existing anchored-popover height budget and usable-space threshold so the panel prefers the space below the controls and switches sides when needed. Chrome 156 at 320, 390 and 1280 px verifies touch and keyboard access to the bottom action, sticky close, focus restoration and resumed playback. The narrow panel height falls from 828 to 360 px in the 390 px control. No new surface or device-specific branch. --- src/client/channel/components/ChannelMedia.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/channel/components/ChannelMedia.tsx b/src/client/channel/components/ChannelMedia.tsx index 03d77ce27..5ef1d45ba 100644 --- a/src/client/channel/components/ChannelMedia.tsx +++ b/src/client/channel/components/ChannelMedia.tsx @@ -482,7 +482,7 @@ export function ChannelVideo({ stream, owned, localSource, sourcePaused = false, const playbackRef = useMemo(() => ({ current: activeVideo }), [activeVideo]); const picture = usePictureInPicture(playbackRef); const previewPlayback = useHostPreviewPlayback(playbackRef, owned ? displayed?.stream ?? null : null, previewAutoPause, localSource); - useAnchoredPopover(pictureTrigger, picturePanel, { side: "above", align: "center" }); + useAnchoredPopover(pictureTrigger, picturePanel, { align: "center", maxHeight: 360, minVisibleHeight: 240 }); useLayoutEffect(() => { if (presentation === "background") picturePanel.current?.hidePopover(); }, [presentation]); const visibility = usePlaybackControlsVisibility(playbackRef, controls, blocked || !ready); const register = useCallback((input: ChannelScreenInput, element: HTMLVideoElement | null) => {