improve sidenav and topbar
This commit is contained in:
@@ -26,7 +26,7 @@ export const App: FC = () => {
|
|||||||
<UserProvider userRef={data.currentUser}>
|
<UserProvider userRef={data.currentUser}>
|
||||||
<main className="min-h-screen w-full bg-gray-50 flex flex-col">
|
<main className="min-h-screen w-full bg-gray-50 flex flex-col">
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<div className="flex flex-grow">
|
<div className="flex" style={{ minHeight: "calc(100vh - 4rem)" }}>
|
||||||
<SideNav />
|
<SideNav />
|
||||||
<Suspense fallback="Carregando...">
|
<Suspense fallback="Carregando...">
|
||||||
<Routes />
|
<Routes />
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ type MenuItem = {
|
|||||||
|
|
||||||
const MenuItems: MenuItem[] = [
|
const MenuItems: MenuItem[] = [
|
||||||
{
|
{
|
||||||
label: "Início",
|
label: "Posições",
|
||||||
path: "/",
|
path: "/",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -65,7 +65,7 @@ export const SideNav = () => {
|
|||||||
/>
|
/>
|
||||||
</Transition>
|
</Transition>
|
||||||
<aside
|
<aside
|
||||||
className={`bg-white w-4/6 md:w-1/6 overflow-hidden absolute h-screen drop-shadow-xl drop border-r border-gray-200 z-40 transition-all duration-500 xl:transition-none xl:mx-0 xl:static ${
|
className={`bg-white w-4/6 md:w-2/6 lg:w-1/6 overflow-hidden absolute min-h-full drop-shadow-xl drop border-r border-gray-200 z-40 transition-all duration-500 xl:transition-none xl:mx-0 xl:static ${
|
||||||
sideNavExpanded ? "mx-0" : "-mx-full"
|
sideNavExpanded ? "mx-0" : "-mx-full"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user