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:
Nicolas Mowen
2024-04-01 09:31:31 -06:00
committed by GitHub
parent 7fac91dce4
commit 52f65a4dc4
6 changed files with 453 additions and 317 deletions

View File

@@ -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>
);
}