Explorar el Código

Autoscroll leftnav to current active navlink

Vijayakrishnan hace 4 años
padre
commit
5e70a04a95
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      resources/views/layouts/pro-logged-in.blade.php

+ 2 - 1
resources/views/layouts/pro-logged-in.blade.php

@@ -350,7 +350,8 @@
             setTimeout(() => {
                 if($('.nav-link.active').length) {
                     $('.nav-link.active')[0].scrollIntoView({
-                        behavior: "smooth"
+                        behavior: "smooth",
+                        block: "nearest"
                     });
                 }
             }, 1000);