forked from Github/frigate
Use drawer instead of dropdown menu for mobile settings (#10761)
* Separate settings items so layout is more consistent * Convert settings on mobile to drawer * Fix sizing on mobile and make scrollable * remove padding * Use dialog instead of popover * Don't focus on first item * Simpler tab fix
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import Logo from "../Logo";
|
||||
import { navbarLinks } from "@/pages/site-navigation";
|
||||
import SettingsNavItems from "../settings/SettingsNavItems";
|
||||
import NavItem from "./NavItem";
|
||||
import { CameraGroupSelector } from "../filter/CameraGroupSelector";
|
||||
import { useLocation } from "react-router-dom";
|
||||
import GeneralSettings from "../settings/GeneralSettings";
|
||||
import AccountSettings from "../settings/AccountSettings";
|
||||
|
||||
function Sidebar() {
|
||||
const location = useLocation();
|
||||
@@ -31,7 +32,10 @@ function Sidebar() {
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<SettingsNavItems className="hidden md:flex flex-col items-center mb-8" />
|
||||
<div className="flex flex-col items-center mb-8">
|
||||
<GeneralSettings />
|
||||
<AccountSettings />
|
||||
</div>
|
||||
</aside>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user