mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Fix root margin for mobile
This commit is contained in:
parent
ac5b8b4f9f
commit
ac83da09ea
@ -27,7 +27,7 @@ function App() {
|
||||
<BrowserRouter>
|
||||
<Wrapper>
|
||||
<Header onToggleNavbar={toggleNavbar} />
|
||||
<div className="grid grid-cols-[auto,1fr] flex-grow-1 overflow-auto">
|
||||
<div className="grid grid-cols-[auto,1fr] flex-grow-1 md:overflow-auto">
|
||||
<Sidebar sheetOpen={sheetOpen} setSheetOpen={setSheetOpen} />
|
||||
<div className="overflow-x-hidden px-4 py-2 w-screen md:w-full">
|
||||
<Routes>
|
||||
|
||||
@ -77,7 +77,7 @@ export default function PreviewThumbnailPlayer({
|
||||
setVisible(false);
|
||||
}
|
||||
},
|
||||
{ threshold: [0.0, 1.0], rootMargin: "25% 0% 50% 0%" }
|
||||
{ threshold: [0.0, 1.0], rootMargin: "10% 0% 25% 0%" }
|
||||
);
|
||||
if (node) observer.current.observe(node);
|
||||
} catch (e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user