Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/layout/header/actions.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</j:forEach>
</j:set>
<j:if test="${hamburgerEntries.length() gt 0}">
<l:overflowButton icon="symbol-menu-hamburger" id="header-more-actions">
<l:overflowButton icon="symbol-menu-hamburger" id="header-more-actions" clazz="jenkins-button--tertiary">
<j:out value="${hamburgerEntries}" />
</l:overflowButton>
</j:if>
Expand Down
9 changes: 9 additions & 0 deletions src/main/js/components/dropdowns/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ function dropdown() {
animation: "dropdown",
duration: 250,
onShow: (instance) => {
// Make sure only one instance is visible at all times

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const dropdowns = document.querySelectorAll("[data-tippy-root]");
Array.from(dropdowns).forEach((element) => {
// Check if the Tippy.js instance exists
if (element && element._tippy) {
// To just hide the dropdown
element._tippy.hide();
}
});
const referenceParent = instance.reference.parentNode;

if (referenceParent.classList.contains("model-link")) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/js/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ function init() {
}
});

window.addEventListener("computeHeaderOverflow", () => {
computeOverflow();
});

// Fade in the page header on scroll, increasing opacity and intensity of the backdrop blur
window.addEventListener("scroll", () => {
const navigation = document.querySelector("#page-header");
Expand Down