Skip to content

Commit

Permalink
Keep the dropdown visible while scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
ramram-mf committed Dec 12, 2024
1 parent 56e6559 commit 5fc1a7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load static wagtailcore_tags wagtailadmin_tags nav_tags %}

{% fragment as content_base_styles %}tw-overflow-y-auto tw-transition-all tw-duration-500 tw-bg-white xlarge:tw-bg-transparent xlarge:tw-max-w-[1200px]{% endfragment %}
{% fragment as content_base_styles %}tw-overflow-y-auto tw-transition-all tw-duration-500 tw-bg-white xlarge:tw-bg-transparent xlarge:tw-max-w-[1200px] xlarge:tw-transition-none xlarge:tw-duration-0{% endfragment %}
{% fragment as dropdown_selector_base %}tw-container tw-flex tw-flex-row tw-items-center tw-justify-between tw-w-full tw-gap-4{% endfragment %}

{% fragment as content_desktop %}xlarge:tw-px-0 xlarge:tw-hidden{% endfragment %}
Expand Down
2 changes: 1 addition & 1 deletion source/js/components/nav/desktop-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class NavDesktopDropdown extends Accordion {
this.content.style.top.replace("px", "")
);
if (currentTopOffset !== newTopOffset) {
this.close();
this.content.style.top = `${newTopOffset}px`;
}
}

Expand Down

0 comments on commit 5fc1a7b

Please sign in to comment.