We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5e0c95 commit 17ae51bCopy full SHA for 17ae51b
2 files changed
src/css/responsive.css
@@ -35,6 +35,10 @@
35
body.sidebar-open {
36
overflow: hidden;
37
}
38
+
39
+ .sidebar.reveal {
40
+ animation: none;
41
+ }
42
43
44
@media (max-width: 768px) {
src/js/main.js
@@ -18,6 +18,9 @@ const setSidebarState = (isOpen) => {
18
if (overlay) {
19
overlay.classList.toggle("open", isOpen);
20
21
+ if (isOpen && window.innerWidth <= 768) {
22
+ sidebar.scrollIntoView({ behavior: "smooth", block: "start" });
23
24
};
25
26
if (toggleButton && sidebar) {
0 commit comments