Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Fix features link on mobile

1ilit934de53f33fc
diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx
index 1a11bd21..c2145217 100644
--- a/src/components/Navbar.jsx
+++ b/src/components/Navbar.jsx
@@ -53,7 +53,15 @@ export default function Navbar() {
onCancel={() => setOpenMenu(false)}
width={window.innerWidth}
>
- <Link className="hover:bg-zinc-100 block p-3 text-base font-semibold">
+ <Link
+ className="hover:bg-zinc-100 block p-3 text-base font-semibold"
+ onClick={() => {
+ document
+ .getElementById("features")
+ .scrollIntoView({ behavior: "smooth" });
+ setOpenMenu(false);
+ }}
+ >
Features
</Link>
<hr />