fixed zIndex bug of bottom nav on eventTypes

This commit is contained in:
Peer Richelsen 2021-08-02 19:50:52 +02:00
parent 7734664dbe
commit 72b24508f1

View file

@ -145,11 +145,6 @@ export default function Shell(props) {
</div>
<div className="px-4 sm:px-6 md:px-8">{props.children}</div>
{/* add padding to content for mobile navigation*/}
<div className="block md:hidden pt-12" />
</div>
</main>
{/* show bottom navigation for md and smaller (tablet and phones) */}
<nav className="md:hidden flex fixed bottom-0 bg-white w-full rounded-lg shadow">
{/* note(PeerRich): using flatMap instead of map to remove settings from bottom nav */}
@ -179,6 +174,11 @@ export default function Shell(props) {
)
)}
</nav>
{/* add padding to content for mobile navigation*/}
<div className="block md:hidden pt-12" />
</div>
</main>
</div>
</div>
) : null;