Small UI bugfix (#17035)

* test for more HA elements

* check if mobile and iOS instead of mobilesafari

* simplify

* fix for logs view
This commit is contained in:
Josh Hawkins
2025-03-09 07:47:10 -06:00
committed by GitHub
parent cf3c0b2eb5
commit 95b5854449
2 changed files with 8 additions and 3 deletions
+5 -1
View File
@@ -31,6 +31,9 @@ import {
TooltipTrigger,
} from "@/components/ui/tooltip";
import { debounce } from "lodash";
import { isIOS, isMobile } from "react-device-detect";
import { isPWA } from "@/utils/isPWA";
import { isInIframe } from "@/utils/isIFrame";
function Logs() {
const [logService, setLogService] = useState<LogType>("frigate");
@@ -54,7 +57,8 @@ function Logs() {
);
if (element instanceof HTMLElement) {
scrollIntoView(element, {
behavior: "smooth",
behavior:
isMobile && isIOS && !isPWA && isInIframe ? "auto" : "smooth",
inline: "start",
});
}