From 03174adb8b13980227ac9d6a63471f6e79bcc9a1 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 11 Nov 2025 11:05:44 -0600 Subject: [PATCH] hide settings dropdown when fullscreen --- web/src/views/live/LiveCameraView.tsx | 536 +++++++++++++------------- 1 file changed, 270 insertions(+), 266 deletions(-) diff --git a/web/src/views/live/LiveCameraView.tsx b/web/src/views/live/LiveCameraView.tsx index f667afd29..9e639ab7b 100644 --- a/web/src/views/live/LiveCameraView.tsx +++ b/web/src/views/live/LiveCameraView.tsx @@ -1030,294 +1030,298 @@ function FrigateCameraFeatures({ disabled={!cameraEnabled || debug || isSnapshotLoading} loading={isSnapshotLoading} /> - - -
- -
-
- -
- {!isRestreamed && ( -
- -
- -
- {t("streaming.restreaming.disabled", { - ns: "components/dialog", - })} -
- - -
- - - {t("button.info", { ns: "common" })} - -
-
- - {t("streaming.restreaming.desc.title", { + {!fullscreen && ( + + +
+ +
+
+ +
+ {!isRestreamed && ( +
+ +
+ +
+ {t("streaming.restreaming.disabled", { ns: "components/dialog", })} -
- - {t("readTheDocumentation", { ns: "common" })} - - -
- - -
-
- )} - {isRestreamed && - Object.values(camera.live.streams).length > 0 && ( -
- - - - {debug && ( -
- <> - -
{t("stream.debug.picker")}
-
- )} - - {preferredLiveMode != "jsmpeg" && - !debug && - isRestreamed && ( -
- {supportsAudioOutput ? ( - <> - -
{t("stream.audio.available")}
- - ) : ( - <> - -
{t("stream.audio.unavailable")}
- - -
- - - {t("button.info", { ns: "common" })} - -
-
- - {t("stream.audio.tips.title")} -
- - {t("readTheDocumentation", { - ns: "common", - })} - - -
-
-
- - )} -
- )} - {preferredLiveMode != "jsmpeg" && - !debug && - isRestreamed && - supportsAudioOutput && ( -
- {supports2WayTalk ? ( - <> - -
{t("stream.twoWayTalk.available")}
- - ) : ( - <> - -
{t("stream.twoWayTalk.unavailable")}
- - -
- - - {t("button.info", { ns: "common" })} - -
-
- - {t("stream.twoWayTalk.tips")} -
- - {t("readTheDocumentation", { - ns: "common", - })} - - -
-
-
- - )} -
- )} - - {preferredLiveMode == "jsmpeg" && - !debug && - isRestreamed && ( -
-
- - -

- {t("stream.lowBandwidth.tips")} -

+ + +
+ + + {t("button.info", { ns: "common" })} +
- -
- )} + + + {t("streaming.restreaming.desc.title", { + ns: "components/dialog", + })} +
+ + {t("readTheDocumentation", { ns: "common" })} + + +
+
+ +
+
+ )} + {isRestreamed && + Object.values(camera.live.streams).length > 0 && ( +
+ + + + {debug && ( +
+ <> + +
{t("stream.debug.picker")}
+ +
+ )} + + {preferredLiveMode != "jsmpeg" && + !debug && + isRestreamed && ( +
+ {supportsAudioOutput ? ( + <> + +
{t("stream.audio.available")}
+ + ) : ( + <> + +
{t("stream.audio.unavailable")}
+ + +
+ + + {t("button.info", { ns: "common" })} + +
+
+ + {t("stream.audio.tips.title")} +
+ + {t("readTheDocumentation", { + ns: "common", + })} + + +
+
+
+ + )} +
+ )} + {preferredLiveMode != "jsmpeg" && + !debug && + isRestreamed && + supportsAudioOutput && ( +
+ {supports2WayTalk ? ( + <> + +
{t("stream.twoWayTalk.available")}
+ + ) : ( + <> + +
{t("stream.twoWayTalk.unavailable")}
+ + +
+ + + {t("button.info", { ns: "common" })} + +
+
+ + {t("stream.twoWayTalk.tips")} +
+ + {t("readTheDocumentation", { + ns: "common", + })} + + +
+
+
+ + )} +
+ )} + + {preferredLiveMode == "jsmpeg" && + !debug && + isRestreamed && ( +
+
+ + +

+ {t("stream.lowBandwidth.tips")} +

+
+ +
+ )} +
+ )} + {isRestreamed && ( +
+
+ + + setPlayInBackground(checked) + } + /> +
+

+ {t("stream.playInBackground.tips")} +

)} - {isRestreamed && (
- setPlayInBackground(checked) - } + checked={showStats} + onCheckedChange={(checked) => setShowStats(checked)} />

- {t("stream.playInBackground.tips")} + {t("streaming.showStats.desc", { + ns: "components/dialog", + })}

- )} -
-
- - setShowStats(checked)} - /> -
-

- {t("streaming.showStats.desc", { - ns: "components/dialog", - })} -

-
-
-
- - setDebug(checked)} - /> +
+
+ + setDebug(checked)} + /> +
-
- - + + + )} ); }